From 2fc7231df28e5a3425ee47b871ba3766e0856bd8 Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Tue, 19 Mar 2024 14:48:01 -0400 Subject: [PATCH] Removing embedding appToken from CI (#10497) --- .changeset/lucky-brooms-help.md | 5 +++++ packages/db/src/core/integration/vite-plugin-db.ts | 5 +---- 2 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 .changeset/lucky-brooms-help.md diff --git a/.changeset/lucky-brooms-help.md b/.changeset/lucky-brooms-help.md new file mode 100644 index 000000000000..e7c6f3e2903b --- /dev/null +++ b/.changeset/lucky-brooms-help.md @@ -0,0 +1,5 @@ +--- +"@astrojs/db": patch +--- + +Remove embedded app token from CI diff --git a/packages/db/src/core/integration/vite-plugin-db.ts b/packages/db/src/core/integration/vite-plugin-db.ts index 1a6c9b50b780..7e54190ea38f 100644 --- a/packages/db/src/core/integration/vite-plugin-db.ts +++ b/packages/db/src/core/integration/vite-plugin-db.ts @@ -142,10 +142,7 @@ export function getStudioVirtualModContents({ return ` import {asDrizzleTable, createRemoteDatabaseClient} from ${RUNTIME_IMPORT}; -export const db = await createRemoteDatabaseClient(process.env.ASTRO_STUDIO_APP_TOKEN ?? ${JSON.stringify( - appToken - // Respect runtime env for user overrides in SSR - )}, import.meta.env.ASTRO_STUDIO_REMOTE_DB_URL ?? ${JSON.stringify(getRemoteDatabaseUrl())}); +export const db = await createRemoteDatabaseClient(process.env.ASTRO_STUDIO_APP_TOKEN); export * from ${RUNTIME_CONFIG_IMPORT};