diff options
-rw-r--r-- | .changeset/lucky-brooms-help.md | 5 | ||||
-rw-r--r-- | packages/db/src/core/integration/vite-plugin-db.ts | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/.changeset/lucky-brooms-help.md b/.changeset/lucky-brooms-help.md new file mode 100644 index 000000000..e7c6f3e29 --- /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 1a6c9b50b..7e54190ea 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}; |