@openworkers/adapter-static 0.1.4 → 0.1.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.
- package/index.js +4 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -62,9 +62,11 @@ export async function adapt(options = {}) {
|
|
|
62
62
|
mode,
|
|
63
63
|
fallback,
|
|
64
64
|
immutable,
|
|
65
|
-
// Static:
|
|
66
|
-
|
|
65
|
+
// Static: only non-HTML files (robots.txt, favicon.ico, etc.)
|
|
66
|
+
// HTML files are in prerendered to avoid duplication
|
|
67
|
+
static: nonHtmlFiles.map((f) => '/' + f),
|
|
67
68
|
// Prerendered: HTML files without .html extension
|
|
69
|
+
// Requests with .html extension will match via fallback routing
|
|
68
70
|
prerendered: prerenderedRoutes,
|
|
69
71
|
functions: [],
|
|
70
72
|
// If fallback is set, worker handles all unmatched routes (SPA mode)
|