@shipstatic/ship 3.4.0-beta.12 → 3.4.0-beta.14
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/SKILL.md +1 -1
- package/THIRD-PARTY-LICENSES.md +1 -1
- package/dist/browser.d.ts +8 -0
- package/dist/browser.js.map +1 -1
- package/dist/cli.cjs +1 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/SKILL.md
CHANGED
|
@@ -116,7 +116,7 @@ Visitors get an unlock page until they enter the password. Length: 6–128 chara
|
|
|
116
116
|
|
|
117
117
|
### Client-side routing
|
|
118
118
|
|
|
119
|
-
A deployment whose only page is `index.html` serves it for every missing path, so a React, Vue, Svelte or Angular build works on its routes with nothing to configure. An app that ships other HTML files beside its shell declares the route itself: a `ship.json` rewrite from `/(.*)` to `/index.html`, the one the ship.json docs show. Your own rewrites run ahead of either
|
|
119
|
+
A deployment whose only page is `index.html` serves it for every missing path, so a React, Vue, Svelte or Angular build works on its routes with nothing to configure. An app that ships other HTML files beside its shell declares the route itself: a `ship.json` rewrite from `/(.*)` to `/index.html`, the one the ship.json docs show. Your own rewrites run ahead of either. A root `404.html` of your own turns the automatic route off and is served for a missing path your rewrites do not claim. Every deployment states the answer as `fallback`: the page a missing path opens, or `null` for a 404, so check it on the deploy response and add the rewrite when an app reads `null`.
|
|
120
120
|
|
|
121
121
|
## Authentication
|
|
122
122
|
|
package/THIRD-PARTY-LICENSES.md
CHANGED
|
@@ -5,7 +5,7 @@ Their copyright notices travel with that copy, and are reproduced here in
|
|
|
5
5
|
full. This file is GENERATED from the build's own metafile — edit the
|
|
6
6
|
bundle, not this list.
|
|
7
7
|
|
|
8
|
-
## @shipstatic/types 3.8.0-beta.
|
|
8
|
+
## @shipstatic/types 3.8.0-beta.11
|
|
9
9
|
|
|
10
10
|
License: MIT
|
|
11
11
|
|
package/dist/browser.d.ts
CHANGED
|
@@ -116,6 +116,14 @@ interface Deployment {
|
|
|
116
116
|
readonly config: boolean;
|
|
117
117
|
/** Whether deployment has a password set */
|
|
118
118
|
readonly password: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* The page every missing path opens, when the deployment's rewrites end in
|
|
121
|
+
* a catch-all to one: the platform's single-page preset (a deployment whose
|
|
122
|
+
* only page is `index.html`), or a catch-all the author wrote. `null` when
|
|
123
|
+
* a missing path is a 404, which is what an application with pages beside
|
|
124
|
+
* its shell gets until its author declares the route.
|
|
125
|
+
*/
|
|
126
|
+
readonly fallback: string | null;
|
|
119
127
|
/** Labels for categorization and filtering (lowercase, alphanumeric with separators). Always present, empty array when none. */
|
|
120
128
|
labels: string[];
|
|
121
129
|
/**
|