midah commited on
Commit
adf5a74
·
1 Parent(s): 478ac96

Fix Netlify build: add legacy-peer-deps flag for TypeScript 5 compatibility

Browse files
Files changed (2) hide show
  1. frontend/.npmrc +2 -0
  2. 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"