Skip to content

Commit 918b28a

Browse files
authored
Note about cleanUrls (#16)
1 parent 896e320 commit 918b28a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,22 @@ When you're ready to share your changes with the world, deploy your Next.js app
8181
1. Run `firebase deploy` from the terminal.
8282
2. Check your website on: `SITE_ID.web.app` or `PROJECT_ID.web.app` (or your custom domain, if you did setup one)
8383

84+
### Common Configurations
85+
86+
#### Add `cleanUrls` option
87+
88+
By default, a page created on `/pages/foo/bar.jsx` is only accessible through the url `/foo/bar.html`.
89+
To make the page accessible on `/foo/bar` instead, add `cleanUrls` option to your hosting config in firebase.json.
90+
91+
```json
92+
{
93+
"hosting": {
94+
"source": ".",
95+
"cleanUrls": true
96+
}
97+
}
98+
```
99+
84100
# Deploy Angular
85101

86102
Easily deploy your Angular application to Firebase and serve dynamic content to your users.

0 commit comments

Comments
 (0)