-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change process.env to Vite import.meta.env: https://vitejs.dev/guide/…
- Loading branch information
Showing
1 changed file
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
export const inDevelopment = process.env.NODE_ENV === 'development' | ||
export const inDevelopment = import.meta.env.NODE_ENV === 'development' | ||
|
||
export const inStaging = process.env.REACT_APP_STAGING === 'true' | ||
export const inStaging = import.meta.env.REACT_APP_STAGING === 'true' | ||
|
||
export const inProduction = !inStaging && process.env.NODE_ENV === 'production' | ||
export const inProduction = | ||
!inStaging && import.meta.env.NODE_ENV === 'production' | ||
|
||
export const inE2EMode = process.env.REACT_APP_E2E === 'true' | ||
export const inE2EMode = import.meta.env.REACT_APP_E2E === 'true' | ||
|
||
export const GIT_SHA = process.env.REACT_APP_GIT_SHA || '' | ||
export const GIT_SHA = import.meta.env.REACT_APP_GIT_SHA || '' | ||
|
||
export const PUBLIC_URL = process.env.PUBLIC_URL || '' | ||
export const PUBLIC_URL = import.meta.env.PUBLIC_URL || '' | ||
|
||
export const DEFAULT_SURVEY_NAME = | ||
process.env.DEFAULT_SURVEY_NAME || 'testSurvey' | ||
import.meta.env.DEFAULT_SURVEY_NAME || 'testSurvey' | ||
|
||
export const FORM_DATA_KEY = 'curre_local_save' |
3bf1b89
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More information and other options also found here: vitejs/vite#1973