@astrojs/cloudflare 10.2.3 → 10.2.4
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.
|
@@ -114,6 +114,9 @@ export async function createRoutesFile(_config, logger, routes, pages, redirects
|
|
|
114
114
|
[{ content: '', dynamic: true, spread: false }],
|
|
115
115
|
], _config);
|
|
116
116
|
excludePaths.push(assetsPath);
|
|
117
|
+
for (const redirect of redirects) {
|
|
118
|
+
excludePaths.push(segmentsToCfSyntax(redirect, _config));
|
|
119
|
+
}
|
|
117
120
|
if (existsSync(fileURLToPath(_config.publicDir))) {
|
|
118
121
|
const staticFiles = await glob(`${fileURLToPath(_config.publicDir)}/**/*`, {
|
|
119
122
|
cwd: fileURLToPath(_config.publicDir),
|
|
@@ -133,9 +136,6 @@ export async function createRoutesFile(_config, logger, routes, pages, redirects
|
|
|
133
136
|
excludePaths.push(segmentsToCfSyntax(segments, _config));
|
|
134
137
|
}
|
|
135
138
|
}
|
|
136
|
-
for (const redirect of redirects) {
|
|
137
|
-
excludePaths.push(segmentsToCfSyntax(redirect, _config));
|
|
138
|
-
}
|
|
139
139
|
let hasPrerendered404 = false;
|
|
140
140
|
for (const route of routes) {
|
|
141
141
|
const convertedPath = segmentsToCfSyntax(route.segments, _config);
|
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.2.
|
|
4
|
+
"version": "10.2.4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"author": "withastro",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"rollup": "^4.14.0",
|
|
50
50
|
"strip-ansi": "^7.1.0",
|
|
51
51
|
"vite": "^5.2.6",
|
|
52
|
-
"
|
|
53
|
-
"
|
|
52
|
+
"@astrojs/test-utils": "0.0.1",
|
|
53
|
+
"astro-scripts": "0.0.14"
|
|
54
54
|
},
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"provenance": true
|