DevLog
Python, TypeScript, etc...
MyPage
Python, TypeScript, etc...
2022/06/13

firebase x Nuxt3の備忘

Nuxt.jsFirebase
preview
@shiromisanta
Frontend Engineer
  •  /
目次
SSRしたい時の参考

SSRしたい時の参考

https://qiita.com/demouth/items/470d443d8f2ac66a34c8

firebase.json

SPA

{ "functions": { "source": ".output/server", "runtime": "nodejs16" }, "hosting": { "public": ".output/public", "ignore": [ "firebase.json", "**/.*", "**/node_modules/**" ], "rewrites": [ { "source": "**", "destination": "/index.html" } ] } }

SSR

{ "functions": { "source": ".output/server", "runtime": "nodejs16" }, "hosting": { "public": ".output/public", "ignore": [ "firebase.json", "**/.*", "**/node_modules/**" ], "cleanUrls": true, "rewrites": [ { "source": "**", "function": "server" } ] } }

関連記事

preview
@shiromisanta 2022/06/12
Nuxt.jsFirebase
preview
@shiromisanta 2022/06/12
Nuxt.jsVue.js
preview
@shiromisanta 2022/01/11
vee-validateVue.jsNuxt.js
2022/06/13

firebase x Nuxt3の備忘

Nuxt.jsFirebase

SSRしたい時の参考

https://qiita.com/demouth/items/470d443d8f2ac66a34c8

firebase.json

SPA

{ "functions": { "source": ".output/server", "runtime": "nodejs16" }, "hosting": { "public": ".output/public", "ignore": [ "firebase.json", "**/.*", "**/node_modules/**" ], "rewrites": [ { "source": "**", "destination": "/index.html" } ] } }

SSR

{ "functions": { "source": ".output/server", "runtime": "nodejs16" }, "hosting": { "public": ".output/public", "ignore": [ "firebase.json", "**/.*", "**/node_modules/**" ], "cleanUrls": true, "rewrites": [ { "source": "**", "function": "server" } ] } }

関連記事

preview
@shiromisanta 2022/06/12
Nuxt.jsFirebase
preview
@shiromisanta 2022/06/12
Nuxt.jsVue.js
preview
@shiromisanta 2022/01/11
vee-validateVue.jsNuxt.js
preview
@shiromisanta
Frontend Engineer
  •  /
©︎Devlog