File tree Expand file tree Collapse file tree 4 files changed +18
-8
lines changed
Expand file tree Collapse file tree 4 files changed +18
-8
lines changed Original file line number Diff line number Diff line change 11API_URL = https://dummyjson.com/
22
3- # # TOTO: add the variable to your CI and remove it from here, not recommended setting sensitive values on your git repo
4- SECRET_KEY = my-secret-key
3+ # # TODO: add the variable to your CI and remove it from here, not recommended setting sensitive values on your git repo
4+ SECRET_KEY = my-secret-key
5+ VAR_NUMBER = 10 # this is a number variable
6+ VAR_BOOL = true # this is a boolean variable
Original file line number Diff line number Diff line change 11API_URL = https://dummyjson.com/
22
3- # # TOTO: add the variable to your CI and remove it from here, not recommended setting sensitive values on your git repo
4- SECRET_KEY = my-secret-key
3+ # # TODO: add the variable to your CI and remove it from here, not recommended setting sensitive values on your git repo
4+ SECRET_KEY = my-secret-key
5+ VAR_NUMBER = 10 # this is a number variable
6+ VAR_BOOL = true # this is a boolean variable
Original file line number Diff line number Diff line change 11API_URL = https://dummyjson.com/
22
3- # # TOTO: add the variable to your CI and remove it from here, not recommended setting sensitive values on your git repo
4- SECRET_KEY = my-secret-key
3+ # # TODO: add the variable to your CI and remove it from here, not recommended setting sensitive values on your git repo
4+ SECRET_KEY = my-secret-key
5+ VAR_NUMBER = 10 # this is a number variable
6+ VAR_BOOL = true # this is a boolean variable
Original file line number Diff line number Diff line change @@ -79,6 +79,8 @@ const client = z.object({
7979
8080 // ADD YOUR CLIENT ENV VARS HERE
8181 API_URL : z . string ( ) ,
82+ VAR_NUMBER : z . number ( ) ,
83+ VAR_BOOL : z . boolean ( ) ,
8284} ) ;
8385
8486const buildTime = z . object ( {
@@ -89,7 +91,7 @@ const buildTime = z.object({
8991} ) ;
9092
9193/**
92- * @type {Record<keyof z.infer<typeof client> , string | undefined > }
94+ * @type {Record<keyof z.infer<typeof client> , unknown > }
9395 */
9496const _clientEnv = {
9597 APP_ENV ,
@@ -101,10 +103,12 @@ const _clientEnv = {
101103
102104 // ADD YOUR ENV VARS HERE TOO
103105 API_URL : process . env . API_URL ,
106+ VAR_NUMBER : Number ( process . env . VAR_NUMBER ) ,
107+ VAR_BOOL : process . env . VAR_BOOL === 'true' ,
104108} ;
105109
106110/**
107- * @type {Record<keyof z.infer<typeof buildTime> , string | undefined > }
111+ * @type {Record<keyof z.infer<typeof buildTime> , unknown > }
108112 */
109113const _buildTimeEnv = {
110114 EXPO_ACCOUNT_OWNER ,
You can’t perform that action at this time.
0 commit comments