create-harper 1.10.2 → 1.10.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-harper",
3
3
  "description": "Scaffold a new Harper project in JavaScript or TypeScript.",
4
- "version": "1.10.2",
4
+ "version": "1.10.4",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "exports": {
@@ -32,11 +32,11 @@ jsResource:
32
32
  files: 'src/**/*'
33
33
  output: 'dist'
34
34
 
35
- # Serves the built frontend from Vite's output directory. `notFound` + `fallthrough: false` makes
36
- # client-side routing work (unmatched routes return index.html); the REST routes above take precedence.
35
+ # Serves the built frontend from Vite's output directory. Requests that don't match a file fall
36
+ # through to the REST resources above. If you add client-side routing, use hash-based routing
37
+ # (e.g. React Router's `createHashRouter`): every page loads from `/`, so deep links work and
38
+ # index.html stays cacheable at a single URL. Do not add a `notFound` + `fallthrough: false`
39
+ # fallback here — the static handler runs before the REST handler, so it would swallow GET
40
+ # requests to your resources.
37
41
  static:
38
42
  files: 'dist/**'
39
- notFound:
40
- file: 'index.html'
41
- statusCode: 200
42
- fallthrough: false
@@ -33,11 +33,11 @@ jsResource:
33
33
  files: 'src/**/*'
34
34
  output: 'dist'
35
35
 
36
- # Serves the built frontend from Vite's output directory. `notFound` + `fallthrough: false` makes
37
- # client-side routing work (unmatched routes return index.html); the REST routes above take precedence.
36
+ # Serves the built frontend from Vite's output directory. Requests that don't match a file fall
37
+ # through to the REST resources above. If you add client-side routing, use hash-based routing
38
+ # (e.g. React Router's `createHashRouter`): every page loads from `/`, so deep links work and
39
+ # index.html stays cacheable at a single URL. Do not add a `notFound` + `fallthrough: false`
40
+ # fallback here — the static handler runs before the REST handler, so it would swallow GET
41
+ # requests to your resources.
38
42
  static:
39
43
  files: 'dist/**'
40
- notFound:
41
- file: 'index.html'
42
- statusCode: 200
43
- fallthrough: false
@@ -32,11 +32,11 @@ jsResource:
32
32
  files: 'src/**/*'
33
33
  output: 'dist'
34
34
 
35
- # Serves the built frontend from Vite's output directory. `notFound` + `fallthrough: false` makes
36
- # client-side routing work (unmatched routes return index.html); the REST routes above take precedence.
35
+ # Serves the built frontend from Vite's output directory. Requests that don't match a file fall
36
+ # through to the REST resources above. If you add client-side routing, use hash-based routing
37
+ # (e.g. Vue Router's `createWebHashHistory`): every page loads from `/`, so deep links work and
38
+ # index.html stays cacheable at a single URL. Do not add a `notFound` + `fallthrough: false`
39
+ # fallback here — the static handler runs before the REST handler, so it would swallow GET
40
+ # requests to your resources.
37
41
  static:
38
42
  files: 'dist/**'
39
- notFound:
40
- file: 'index.html'
41
- statusCode: 200
42
- fallthrough: false
@@ -33,11 +33,11 @@ jsResource:
33
33
  files: 'src/**/*'
34
34
  output: 'dist'
35
35
 
36
- # Serves the built frontend from Vite's output directory. `notFound` + `fallthrough: false` makes
37
- # client-side routing work (unmatched routes return index.html); the REST routes above take precedence.
36
+ # Serves the built frontend from Vite's output directory. Requests that don't match a file fall
37
+ # through to the REST resources above. If you add client-side routing, use hash-based routing
38
+ # (e.g. Vue Router's `createWebHashHistory`): every page loads from `/`, so deep links work and
39
+ # index.html stays cacheable at a single URL. Do not add a `notFound` + `fallthrough: false`
40
+ # fallback here — the static handler runs before the REST handler, so it would swallow GET
41
+ # requests to your resources.
38
42
  static:
39
43
  files: 'dist/**'
40
- notFound:
41
- file: 'index.html'
42
- statusCode: 200
43
- fallthrough: false