diff --git a/docs/firebase.json b/docs/firebase.json index a3001c87..95d10277 100644 --- a/docs/firebase.json +++ b/docs/firebase.json @@ -10,6 +10,16 @@ "i18n": { "root": "/" }, - "trailingSlash": false + "trailingSlash": false, + "rewrites": [ + { + "source": "**", + "function": "www-server", + "pinTag": true + } + ], + "functions": { + "codebase": "www" + } } } diff --git a/docs/package.json b/docs/package.json index 57ae13ed..01c2b457 100644 --- a/docs/package.json +++ b/docs/package.json @@ -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": "s@blinkk.com",