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:
parent
2ebcf94d0a
commit
2fc7231df2
2 changed files with 6 additions and 4 deletions
5
.changeset/lucky-brooms-help.md
Normal file
5
.changeset/lucky-brooms-help.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"@astrojs/db": patch
|
||||
---
|
||||
|
||||
Remove embedded app token from CI
|
|
@ -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};
|
||||
|
||||
|
|
Loading…
Reference in a new issue