@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.
Files changed (2) hide show
  1. package/index.js +4 -2
  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: all files with their original names (including .html)
66
- static: staticFiles.map((f) => '/' + f),
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openworkers/adapter-static",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Static site adapter for OpenWorkers",
5
5
  "keywords": [
6
6
  "adapter",