diff --git a/package.json b/package.json index 4e881dc..3d9dbf6 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ "start": "node .next/standalone/server.js", "lint": "next lint", "format": "prettier --write .", - "cypress:start_server": "cp public .next/standalone/ -r && cp .next/static/ .next/standalone/.next/ -r && dotenv -e .env.test -- node .next/standalone/server.js", + "cypress:build": "prettier --check . && NODE_ENV=test next build", + "cypress:start_server": "cp .env.test .next/standalone && cp public .next/standalone/ -r && cp .next/static/ .next/standalone/.next/ -r && NODE_ENV=test node .next/standalone/server.js", "cypress:open": "cypress open", "cypress:run": "cypress run" },