Skip to content

Commit 01407ed

Browse files
committed
docs: make Now deployment guide work for SPA
1 parent cca857c commit 01407ed

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

docs/guide/deployment.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,13 @@ Please refer to the [Firebase Documentation](https://firebase.google.com/docs/ho
213213
"name": "my-example-app",
214214
"type": "static",
215215
"static": {
216-
"public": "dist"
216+
"public": "dist",
217+
"rewrites": [
218+
{
219+
"source": "**",
220+
"destination": "/index.html"
221+
}
222+
]
217223
},
218224
"alias": "vue-example",
219225
"files": [
@@ -222,7 +228,7 @@ Please refer to the [Firebase Documentation](https://firebase.google.com/docs/ho
222228
}
223229
```
224230

225-
Modify `name` and `alias` accordingly.
231+
You can further customize the static serving behavior by consulting [Now's documentation](https://zeit.co/docs/deployment-types/static).
226232
227233
3. Adding a deployment script in `package.json`:
228234

0 commit comments

Comments
 (0)