build: Konfiguration für statische Exporte mit Umgebungsvariable optimiert
- output: "export" wird jetzt automatisch bei EXPORT_STATIC=true aktiviert - Entwicklungsmodus (npm run dev) nutzt weiterhin API-Routen für Mock-Tests - Neues npm-Skript nutzt cross-env für Umgebungsunabhängigkeit bei Windows/Linux - cross-env als devDependency hinzugefügt
This commit is contained in:
@@ -5,12 +5,13 @@
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
"clean": "rimraf .next out",
|
||||
"build": "npm run clean && next build",
|
||||
"build": "npm run clean && cross-env EXPORT_STATIC=true next build && next export",
|
||||
"postbuild": "copy LICENSE_ICONIFY.txt out\\LICENSE_ICONIFY.txt",
|
||||
"start": "next start",
|
||||
"lint": "next lint",
|
||||
"test": "jest",
|
||||
"prepare": "husky install"
|
||||
"prepare": "husky install",
|
||||
"export": "cross-env EXPORT_STATIC=true next build && next export"
|
||||
},
|
||||
"dependencies": {
|
||||
"@fontsource/roboto": "^5.1.0",
|
||||
@@ -61,6 +62,7 @@
|
||||
"@types/react-modal": "^3.16.3",
|
||||
"@types/redux-mock-store": "^1.5.0",
|
||||
"@types/testing-library__react": "^10.2.0",
|
||||
"cross-env": "^7.0.3",
|
||||
"cypress": "^14.0.0",
|
||||
"husky": "^8.0.0",
|
||||
"identity-obj-proxy": "^3.0.0",
|
||||
|
||||
Reference in New Issue
Block a user