Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fikser feil i kopiering av env-filer ved lokal kjøring #2201

Merged
merged 2 commits into from
Mar 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"start": "npm run start --workspace packages/server",
"start-in-docker": "node -r dotenv/config server/.dist/server.cjs dotenv_config_path=./.env",
"storybook": "npm run storybook --workspace packages/nextjs",
"dev": "npm run copy-env-development && npm run build && npm run start",
"dev": "npm run copy-env-development && rm -fr packages/nextjs/.next && npm run build:server && npm run start",
"dev-custom": "npm run copy-env-development-custom && npm run build && npm run start",
"dev-server": "npm run copy-env-prod-local && npm run dev --workspace packages/server",
"build-local": "npm run copy-env-prod-local && npm run build",
Expand All @@ -27,9 +27,9 @@
"test:client": "npm run test --workspace packages/nextjs",
"test:server": "npm run test --workspace packages/server",
"prepare": "husky || true",
"copy-env-prod-local": "cp packages/nextjs/.env.prod-local packages/nextjs/.env",
"copy-env-development": "cp packages/nextjs/.env.development packages/nextjs/.env",
"copy-env-development-custom": "cp packages/nextjs/.env.development.local packages/nextjs/.env"
"copy-env-prod-local": "cp .env.prod-local packages/nextjs/.env && cp .env.prod-local packages/server/.env",
"copy-env-development": "cp .env.development packages/nextjs/.env && cp .env.development packages/server/.env",
"copy-env-development-custom": "cp .env.development.local packages/nextjs/.env && cp .env.development.local packages/server/.env"
},
"workspaces": [
"packages/*"
Expand Down
Loading