|
10 | 10 | "start": "npm run start --workspace packages/server",
|
11 | 11 | "start-in-docker": "node -r dotenv/config server/.dist/server.cjs dotenv_config_path=./.env",
|
12 | 12 | "storybook": "npm run storybook --workspace packages/nextjs",
|
13 |
| - "dev": "npm run copy-env-development && npm run build && npm run start", |
| 13 | + "dev": "npm run copy-env-development && rm -fr packages/nextjs/.next && npm run build:server && npm run start", |
14 | 14 | "dev-custom": "npm run copy-env-development-custom && npm run build && npm run start",
|
15 | 15 | "dev-server": "npm run copy-env-prod-local && npm run dev --workspace packages/server",
|
16 | 16 | "build-local": "npm run copy-env-prod-local && npm run build",
|
|
27 | 27 | "test:client": "npm run test --workspace packages/nextjs",
|
28 | 28 | "test:server": "npm run test --workspace packages/server",
|
29 | 29 | "prepare": "husky || true",
|
30 |
| - "copy-env-prod-local": "cp packages/nextjs/.env.prod-local packages/nextjs/.env", |
31 |
| - "copy-env-development": "cp packages/nextjs/.env.development packages/nextjs/.env", |
32 |
| - "copy-env-development-custom": "cp packages/nextjs/.env.development.local packages/nextjs/.env" |
| 30 | + "copy-env-prod-local": "cp .env.prod-local packages/nextjs/.env && cp .env.prod-local packages/server/.env", |
| 31 | + "copy-env-development": "cp .env.development packages/nextjs/.env && cp .env.development packages/server/.env", |
| 32 | + "copy-env-development-custom": "cp .env.development.local packages/nextjs/.env && cp .env.development.local packages/server/.env" |
33 | 33 | },
|
34 | 34 | "workspaces": [
|
35 | 35 | "packages/*"
|
|
0 commit comments