Skip to content

Commit 0fa8a31

Browse files
committed
fix: use cleanUrls in firebase config
Sets `cleanUrls=true` in the Firebase config [0], to fix how subpage navigation works on the hosted site. I'm not stoked that we need to perform this kind of URL rewriting at the hosting layer; I'd prefer that the build step emitted a properly structured static docroot. Refs #8. [0] https://firebase.google.com/docs/hosting/full-config#control_html_extensions
1 parent ff16bc7 commit 0fa8a31

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

firebase.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"hosting": {
33
"public": "out",
4+
"cleanUrls": true,
45
"redirects": [
56
{
67
"source": "/main/index.html",

justfile

+5
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,8 @@ build:
99
# run dev env with livereload, for local editing
1010
dev:
1111
pnpm dev
12+
13+
# run dev env via firebase, for a more prod-like local editing experience
14+
firebase-dev:
15+
@just build
16+
firebase emulators:start

0 commit comments

Comments
 (0)