mirror of
https://github.com/andwati/andwati.com.git
synced 2026-10-18 01:12:53 +00:00
Auto-create apps/cms/.env from .env.example if missing
pnpm dev was failing with "App keys are required" for anyone whose apps/cms/.env didn't already exist (it's gitignored, so this hits every fresh clone, not just a one-off). predev/predevelop now copy .env.example to .env automatically when it's absent, so `pnpm dev` and `pnpm --filter cms develop` both just work without a manual setup step.
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
"private": true,
|
||||
"description": "A Strapi application",
|
||||
"scripts": {
|
||||
"predev": "test -f .env || cp .env.example .env",
|
||||
"predevelop": "test -f .env || cp .env.example .env",
|
||||
"build": "strapi build",
|
||||
"console": "strapi console",
|
||||
"deploy": "strapi deploy",
|
||||
|
||||
Reference in New Issue
Block a user