build(*): Enable running db migrations in build

This commit is contained in:
Josh Creek
2026-01-24 17:59:28 +00:00
parent 6ecaa0f30f
commit 575aafbc28
3 changed files with 531 additions and 73 deletions
+8 -2
View File
@@ -1,3 +1,9 @@
[build]
command = "npm run build"
publish = "build"
command = "npm ci && ./node_modules/.bin/supabase link --project-ref $SUPABASE_PROJECT_REF && ./node_modules/.bin/supabase db push && npm run build"
publish = "build"
[build.environment]
NODE_VERSION = "22"
[context.deploy-preview]
command = "npm ci && npm run build"