ソースを参照

chore: move next build after typescript build

poeti8 5 年 前
コミット
9ff27467d1
1 ファイル変更1 行追加1 行削除
  1. 1 1
      package.json

+ 1 - 1
package.json

@@ -8,7 +8,7 @@
     "docker:build": "docker build -t kutt .",
     "docker:run": "docker run -p 3000:3000 --env-file .env -d kutt:latest",
     "dev": "npm run migrate && nodemon server/server.ts",
-    "build": "next build client/ && rimraf production-server && tsc --project tsconfig.json && copyfiles -f \"server/mail/*.html\" production-server/mail",
+    "build": "rimraf production-server && tsc --project tsconfig.json && copyfiles -f \"server/mail/*.html\" production-server/mail && next build client/ ",
     "start": "npm run migrate && cross-env NODE_ENV=production node production-server/server.js",
     "migrate": "knex migrate:latest --env production",
     "migrate:make": "knex migrate:make --env production",