0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-06 22:10:10 -05:00

Removing embedding appToken from CI (#10497)

This commit is contained in:
Matthew Phillips 2024-03-19 14:48:01 -04:00 committed by GitHub
parent 2ebcf94d0a
commit 2fc7231df2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 4 deletions

View file

@ -0,0 +1,5 @@
---
"@astrojs/db": patch
---
Remove embedded app token from CI

View file

@ -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};