Fix Netlify build: add legacy-peer-deps flag for TypeScript 5 compatibility
Browse files- frontend/.npmrc +2 -0
- netlify.toml +1 -1
frontend/.npmrc
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
legacy-peer-deps=true
|
| 2 |
+
|
netlify.toml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
[build]
|
| 2 |
base = "frontend"
|
| 3 |
publish = "frontend/build"
|
| 4 |
-
command = "npm install && npm run build"
|
| 5 |
|
| 6 |
[build.environment]
|
| 7 |
NODE_VERSION = "18"
|
|
|
|
| 1 |
[build]
|
| 2 |
base = "frontend"
|
| 3 |
publish = "frontend/build"
|
| 4 |
+
command = "npm install --legacy-peer-deps && npm run build"
|
| 5 |
|
| 6 |
[build.environment]
|
| 7 |
NODE_VERSION = "18"
|