Skip to content

Commit

Permalink
chore: update firebase config to point to cloud function (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenle authored Apr 1, 2024
1 parent d268459 commit cd14e9a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
12 changes: 11 additions & 1 deletion docs/firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@
"i18n": {
"root": "/"
},
"trailingSlash": false
"trailingSlash": false,
"rewrites": [
{
"source": "**",
"function": "www-server",
"pinTag": true
}
],
"functions": {
"codebase": "www"
}
}
}
4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
},
"scripts": {
"dev": "root dev",
"build": "root package --target=firebase --out=functions",
"build": "root package --target=firebase --out=functions && touch .env && cp .env functions",
"preview": "rm -rf dist/ && root build --ssr-only && root preview",
"deploy": "rm -rf dist/ && pnpm run build && firebase deploy --only=hosting",
"deploy": "rm -rf dist/ && pnpm run build && firebase deploy",
"types": "root-cms types"
},
"author": "[email protected]",
Expand Down

0 comments on commit cd14e9a

Please sign in to comment.