Skip to content

Commit

Permalink
Only run migration on production
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyxiao committed Oct 23, 2022
1 parent 4aafd31 commit e1b3800
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "0.0.0",
"private": true,
"scripts": {
"build": "run-s --silent build:*",
"build": "run-s build:*",
"build:css": "pnpm run generate:css --minify",
"build:migration": "pnpm --dir ../../ migration up",
"build:migration": "if [ \"$VERCEL_ENV\" = production ]; then pnpm --dir ../../ migration up; else echo 'Skip non-production migration'; fi",
"build:next": "next build",
"dev": "run-p --silent dev:*",
"dev:css": "pnpm run generate:css --watch",
Expand Down

0 comments on commit e1b3800

Please sign in to comment.