Add isNetlify env helper

This commit is contained in:
Sam Carlton 2021-06-11 15:21:42 -05:00
parent 1e782c1f18
commit 232b3ae1c3
2 changed files with 4 additions and 2 deletions

View file

@ -4,4 +4,6 @@ import path from 'path'
export const isProduction = process.env.NODE_ENV === 'PRODUCTION'
export const isNetlify = process.env.NETLIFY === true
export const rootDir = path.resolve(__dirname, '../')