@astrojs/db 0.8.4 → 0.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -94,7 +94,7 @@ function getStudioVirtualModContents({
|
|
|
94
94
|
return `
|
|
95
95
|
import {asDrizzleTable, createRemoteDatabaseClient} from ${RUNTIME_IMPORT};
|
|
96
96
|
|
|
97
|
-
export const db = await createRemoteDatabaseClient(${JSON.stringify(
|
|
97
|
+
export const db = await createRemoteDatabaseClient(process.env.ASTRO_STUDIO_APP_TOKEN ?? ${JSON.stringify(
|
|
98
98
|
appToken
|
|
99
99
|
// Respect runtime env for user overrides in SSR
|
|
100
100
|
)}, import.meta.env.ASTRO_STUDIO_REMOTE_DB_URL ?? ${JSON.stringify(getRemoteDatabaseUrl())});
|
|
@@ -33,7 +33,7 @@ async function setUpEnvTs({
|
|
|
33
33
|
typesEnvContents = `${dbTypeReference}
|
|
34
34
|
${typesEnvContents}`;
|
|
35
35
|
await writeFile(envTsPath, typesEnvContents, "utf-8");
|
|
36
|
-
logger.info(
|
|
36
|
+
logger.info(`Added ${bold(envTsPathRelativetoRoot)} types`);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrojs/db",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -80,8 +80,8 @@
|
|
|
80
80
|
"mocha": "^10.2.0",
|
|
81
81
|
"typescript": "^5.2.2",
|
|
82
82
|
"vite": "^5.1.4",
|
|
83
|
-
"astro": "
|
|
84
|
-
"astro
|
|
83
|
+
"astro-scripts": "0.0.14",
|
|
84
|
+
"astro": "4.5.4"
|
|
85
85
|
},
|
|
86
86
|
"scripts": {
|
|
87
87
|
"types:config": "tsc -p ./tsconfig.config-types.json",
|