@astrojs/cloudflare 10.4.0 → 10.4.1
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.
|
@@ -35,7 +35,10 @@ export function createExports(manifest) {
|
|
|
35
35
|
};
|
|
36
36
|
// Won't throw if the virtual module is not available because it's not supported in
|
|
37
37
|
// the users's astro version or if astro:env is not enabled in the project
|
|
38
|
-
|
|
38
|
+
const setupModule = 'astro/env/setup';
|
|
39
|
+
await import(/* @vite-ignore */ setupModule)
|
|
40
|
+
.then((mod) => mod.setGetEnv(createGetEnv(env)))
|
|
41
|
+
.catch(() => { });
|
|
39
42
|
const response = await app.render(request, { routeData, locals });
|
|
40
43
|
if (app.setCookieHeaders) {
|
|
41
44
|
for (const setCookieHeader of app.setCookieHeaders(response)) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrojs/cloudflare",
|
|
3
3
|
"description": "Deploy your site to Cloudflare Workers/Pages",
|
|
4
|
-
"version": "10.4.
|
|
4
|
+
"version": "10.4.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"author": "withastro",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"fast-glob": "^3.3.2",
|
|
49
49
|
"rollup": "^4.14.0",
|
|
50
50
|
"strip-ansi": "^7.1.0",
|
|
51
|
-
"vite": "^5.2.
|
|
51
|
+
"vite": "^5.2.13",
|
|
52
52
|
"@astrojs/test-utils": "0.0.1",
|
|
53
53
|
"astro-scripts": "0.0.14"
|
|
54
54
|
},
|