fix: web start with dotenv (#282)

This commit is contained in:
JeffJiang
2025-06-05 11:53:49 +08:00
committed by GitHub
parent 91648c4210
commit 73ac8ae45a
2 changed files with 29 additions and 2 deletions

View File

@@ -6,7 +6,7 @@
"scripts": {
"build": "next build",
"check": "next lint && tsc --noEmit",
"dev": "dotenv -f ../.env -e true run next dev --turbo",
"dev": "dotenv -e ../.env -- next dev --turbo",
"scan": "next dev & npx react-scan@latest localhost:3000",
"format:check": "prettier --check \"**/*.{ts,tsx,js,jsx,mdx}\" --cache",
"format:write": "prettier --write \"**/*.{ts,tsx,js,jsx,mdx}\" --cache",
@@ -91,6 +91,7 @@
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"@types/react-syntax-highlighter": "^15.5.13",
"dotenv-cli": "^8.0.0",
"eslint": "^9.23.0",
"eslint-config-next": "^15.2.3",
"postcss": "^8.5.3",
@@ -110,4 +111,4 @@
"sharp"
]
}
}
}