Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add: Configure EAS Secrets and environment variables in eas.json and …
…app.config.ts
- Loading branch information
1 parent
57afa41
commit 0df036d
Showing
3 changed files
with
34 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { ExpoConfig, ConfigContext } from "@expo/config"; | ||
import { config } from "dotenv"; | ||
|
||
if (process.env.NODE_ENV !== "production") { | ||
config(); // ".env" file is loaded only in non-production environments | ||
} | ||
|
||
export default ({ config: expoConfig }: ConfigContext): ExpoConfig => { | ||
return { | ||
...expoConfig, | ||
name: "my-first-react-native-app", | ||
slug: "my-first-react-native-app", | ||
extra: { | ||
microcmsApiKey: process.env.MICROCMS_API_KEY, | ||
microcmsServiceDomain: process.env.MICROCMS_SERVICE_DOMAIN, | ||
eas: { | ||
projectId: "713c452f-8c8a-4875-ad08-1cbec7c13133", | ||
}, | ||
}, | ||
}; | ||
}; |
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
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