mirror of
https://github.com/withastro/astro.git
synced 2025-03-10 23:01:26 -05:00
* Revert "Removing embedding appToken from CI (#10497)"
This reverts commit 2fc7231df2
.
* Changeset
This commit is contained in:
parent
e457bb2e90
commit
30ce9a0c47
2 changed files with 9 additions and 1 deletions
5
.changeset/modern-roses-buy.md
Normal file
5
.changeset/modern-roses-buy.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"@astrojs/db": patch
|
||||
---
|
||||
|
||||
Fix accessing remote database URL
|
|
@ -142,7 +142,10 @@ export function getStudioVirtualModContents({
|
|||
return `
|
||||
import {asDrizzleTable, createRemoteDatabaseClient} from ${RUNTIME_IMPORT};
|
||||
|
||||
export const db = await createRemoteDatabaseClient(process.env.ASTRO_STUDIO_APP_TOKEN);
|
||||
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 * from ${RUNTIME_CONFIG_IMPORT};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue