@cedarjs/fastify-web 2.2.1-next.0 → 2.2.1-next.21
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.
- package/dist/web.js +2 -2
- package/package.json +4 -4
package/dist/web.js
CHANGED
|
@@ -34,7 +34,7 @@ __export(web_exports, {
|
|
|
34
34
|
redwoodFastifyWeb: () => redwoodFastifyWeb
|
|
35
35
|
});
|
|
36
36
|
module.exports = __toCommonJS(web_exports);
|
|
37
|
-
var
|
|
37
|
+
var import_node_fs = __toESM(require("node:fs"));
|
|
38
38
|
var import_path = __toESM(require("path"));
|
|
39
39
|
var import_http_proxy = __toESM(require("@fastify/http-proxy"));
|
|
40
40
|
var import_static = __toESM(require("@fastify/static"));
|
|
@@ -145,7 +145,7 @@ async function redwoodFastifyWeb(fastify, opts) {
|
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
147
|
const prerenderIndexPath = import_path.default.join((0, import_project_config2.getPaths)().web.dist, "200.html");
|
|
148
|
-
const fallbackIndexPath =
|
|
148
|
+
const fallbackIndexPath = import_node_fs.default.existsSync(prerenderIndexPath) ? "200.html" : "index.html";
|
|
149
149
|
fastify.setNotFoundHandler({}, (req, reply) => {
|
|
150
150
|
const urlData = req.urlData();
|
|
151
151
|
const requestHasExtension = !!import_path.default.extname(urlData.path ?? "");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/fastify-web",
|
|
3
|
-
"version": "2.2.1-next.
|
|
3
|
+
"version": "2.2.1-next.21+014660ad1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
@@ -21,18 +21,18 @@
|
|
|
21
21
|
"test:watch": "vitest watch"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@cedarjs/project-config": "2.2.1-next.
|
|
24
|
+
"@cedarjs/project-config": "2.2.1-next.21+014660ad1",
|
|
25
25
|
"@fastify/http-proxy": "11.4.1",
|
|
26
26
|
"@fastify/static": "8.3.0",
|
|
27
27
|
"@fastify/url-data": "6.0.3",
|
|
28
28
|
"fast-glob": "3.3.3"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@cedarjs/framework-tools": "2.2.1-next.
|
|
31
|
+
"@cedarjs/framework-tools": "2.2.1-next.21",
|
|
32
32
|
"fastify": "5.6.2",
|
|
33
33
|
"tsx": "4.21.0",
|
|
34
34
|
"typescript": "5.9.3",
|
|
35
35
|
"vitest": "3.2.4"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "014660ad1d93c58cd848e67a370bf4856cd64a11"
|
|
38
38
|
}
|