File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 5858 " last 1 safari version"
5959 ]
6060 },
61- "proxy" : " http://localhost:3001 " ,
61+ "proxy" : " http://localhost:3000 " ,
6262 "devDependencies" : {
6363 "@react-router/dev" : " ^7.9.2" ,
6464 "@tailwindcss/vite" : " ^4.1.13" ,
Original file line number Diff line number Diff line change 1+ import type { Config } from '@react-router/dev/config' ;
2+
3+ export default {
4+ // Config options...
5+ // Server-side render by default, to enable SPA mode set this to `false`
6+ ssr : true ,
7+ } satisfies Config ;
Original file line number Diff line number Diff line change @@ -7,4 +7,13 @@ export default defineConfig({
77 plugins : [
88 tailwindcss ( ) ,
99 reactRouter ( ) , tsconfigPaths ( ) ] ,
10+ ssr : {
11+ // Workaround for resolving dependencies in the server bundle
12+ // Without this, the React context will be different between direct import and transitive imports in development environment
13+ // For more information, see https://github.com/mui/material-ui/issues/45878#issuecomment-2987441663
14+ optimizeDeps : {
15+ include : [ '@emotion/*' , '@mui/*' ] ,
16+ } ,
17+ noExternal : [ '@emotion/*' , '@mui/*' ] ,
18+ } ,
1019} ) ;
You can’t perform that action at this time.
0 commit comments