Skip to content

Commit b9f84e7

Browse files
authored
feat: add new netlify template (#4812)
- added netlify template for react-router based on remix-run/react-router-templates#40 - fixed images optimization on deployed site (legacy templates still broken) - added deploy script Can be tested with `npx [email protected]` Gonna remove legacy netlify templates in separate PR <img width="578" alt="image" src="https://github.com/user-attachments/assets/2d19de74-36be-48a0-8511-9ce1665b755d" />
1 parent f3d7805 commit b9f84e7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1855
-68
lines changed

fixtures/react-router-docker/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
"fixtures:build": "pnpm cli build --template docker --template .template && pnpm prettier --write ./app/ ./package.json ./tsconfig.json"
1111
},
1212
"dependencies": {
13-
"@react-router/dev": "^7.1.4",
14-
"@react-router/fs-routes": "^7.1.4",
15-
"@react-router/node": "^7.1.4",
16-
"@react-router/serve": "^7.1.4",
13+
"@react-router/dev": "^7.1.5",
14+
"@react-router/fs-routes": "^7.1.5",
15+
"@react-router/node": "^7.1.5",
16+
"@react-router/serve": "^7.1.5",
1717
"@webstudio-is/image": "workspace:*",
1818
"@webstudio-is/react-sdk": "workspace:*",
1919
"@webstudio-is/sdk": "workspace:*",
@@ -26,7 +26,7 @@
2626
"isbot": "^5.1.22",
2727
"react": "18.3.0-canary-14898b6a9-20240318",
2828
"react-dom": "18.3.0-canary-14898b6a9-20240318",
29-
"react-router": "^7.1.4",
29+
"react-router": "^7.1.5",
3030
"vite": "^5.4.11",
3131
"webstudio": "workspace:*"
3232
},
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.DS_Store
2+
/node_modules/
3+
4+
# React Router
5+
/.react-router/
6+
/build/

fixtures/react-router-netlify/.npmrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
force=true
2+
# to support using NODE_OPTIONS for windows tests
3+
shell-emulator=true
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
force=true
2+
# to support using NODE_OPTIONS for windows tests
3+
shell-emulator=true
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"dependencies": {
3+
"@webstudio-is/image": "workspace:*",
4+
"@webstudio-is/react-sdk": "workspace:*",
5+
"@webstudio-is/sdk": "workspace:*",
6+
"@webstudio-is/sdk-components-animation": "workspace:*",
7+
"@webstudio-is/sdk-components-react": "workspace:*",
8+
"@webstudio-is/sdk-components-react-radix": "workspace:*",
9+
"@webstudio-is/sdk-components-react-router": "workspace:*",
10+
"webstudio": "workspace:*"
11+
}
12+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"compilerOptions": {
3+
"customConditions": ["webstudio"]
4+
}
5+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"projectId": "d845c167-ea07-4875-b08d-83e97c09dcce"
3+
}

0 commit comments

Comments
 (0)