Skip to content

Commit 236cfdf

Browse files
committed
firebase: app-vue target self-builds (predeploy) — fixes 'app-vue/dist does not exist'
The 'app' hosting target (socioprophet-builder site) pointed at socioprophet-web/app-vue/dist but nothing built it, so 'firebase deploy' failed with 'Directory ... does not exist'. Added a predeploy hook that installs + builds app-vue (vue-tsc + vite build, verified: builds clean in ~0.6s) before deploy, so the target is self-sufficient.
1 parent 120cde2 commit 236cfdf

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

firebase.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
{
3030
"target": "app",
3131
"public": "socioprophet-web/app-vue/dist",
32+
"predeploy": [
33+
"npm --prefix socioprophet-web/app-vue install",
34+
"npm --prefix socioprophet-web/app-vue run build"
35+
],
3236
"ignore": [
3337
"firebase.json",
3438
"**/.*",

0 commit comments

Comments
 (0)