Skip to content

Commit a245a5b

Browse files
committed
fix-PRO-1949: Fix .env values in platform creation screen to follow env format
1 parent b1a5d77 commit a245a5b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/routes/(console)/project-[region]-[project]/overview/platforms/createReactNative.svelte

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@
3535
const gitCloneCode =
3636
'\ngit clone https://github.com/appwrite/starter-for-react-native\ncd starter-for-react-native\n';
3737
38-
const updateConfigCode = `const EXPO_PUBLIC_APPWRITE_PROJECT_ID = "${projectId}";
39-
const EXPO_PUBLIC_APPWRITE_ENDPOINT = "${sdk.forProject(page.params.region, page.params.project).client.config.endpoint}";
40-
`;
38+
const updateConfigCode = (
39+
prefix: string
40+
) => `${prefix}EXPO_PUBLIC_APPWRITE_PROJECT_ID=${projectId}
41+
${prefix}EXPO_PUBLIC_APPWRITE_ENDPOINT=${sdk.forProject(page.params.region, page.params.project).client.config.endpoint}`;
4142
4243
export let platform: PlatformType = PlatformType.Reactnativeandroid;
4344
@@ -232,7 +233,7 @@ const EXPO_PUBLIC_APPWRITE_ENDPOINT = "${sdk.forProject(page.params.region, page
232233

233234
<!-- Temporary fix: Remove this div once Code splitting issue with stack spacing is resolved -->
234235
<div class="pink2-code-margin-fix">
235-
<Code lang="javascript" lineNumbers code={updateConfigCode} />
236+
<Code lang="bash" lineNumbers code={updateConfigCode('')} />
236237
</div>
237238

238239
<Typography.Text variant="m-500"

0 commit comments

Comments
 (0)