File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export default defineConfig({
1919 validator : 'builtin' ,
2020 schema : {
2121 APP_TITLE : Schema . string ( ) ,
22- APP_ENVIRONMENT : ( key , value ) => {
22+ APP_ENVIRONMENT : ( key : string , value : string ) => {
2323 // NOTE: APP_ENVIRONMENT_PLACEHOLDER is meant to be used with image builds
2424 // The value will be later replaced with the actual value
2525 const regex = / ^ p r o d u c t i o n | s t a g i n g | t e s t i n g | a l p h a - \d + | d e v e l o p m e n t | A P P _ E N V I R O N M E N T _ P L A C E H O L D E R $ / ;
@@ -28,7 +28,8 @@ export default defineConfig({
2828 throw new Error ( `Value for environment variable "${ key } " must match regex "${ regex } ", instead received "${ value } "` ) ;
2929 }
3030 if ( value === 'APP_ENVIRONMENT_PLACEHOLDER' ) {
31- console . warn ( `Using ${ value } for app environment. Make sure to not use this for builds without nginx-serve` )
31+ // eslint-disable-next-line no-console
32+ console . warn ( `Using ${ value } for app environment. Make sure to not use this for builds without nginx-serve` ) ;
3233 }
3334 return value as ( 'production' | 'staging' | 'testing' | `alpha-${number } ` | 'development' | 'APP_ENVIRONMENT_PLACEHOLDER' ) ;
3435 } ,
You can’t perform that action at this time.
0 commit comments