Skip to content

Commit f6f2b69

Browse files
committed
fix: libraries
1 parent 73488bb commit f6f2b69

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
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",

frontend/react-router.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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;

frontend/vite.config.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)