Skip to content

Commit 73488bb

Browse files
committed
fix: build
1 parent 25d65fc commit 73488bb

File tree

7 files changed

+39
-57
lines changed

7 files changed

+39
-57
lines changed

frontend/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,6 @@ yarn-error.log*
6868
npm-debug.log*
6969
yarn-debug.log*
7070
yarn-error.log*
71+
72+
# router
73+
/.react-router

frontend/app/components/LoginModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import styles from './modal.module.scss';
1515
import GlobalState from "../GlobalState";
1616
import { type UserDataState } from "../GlobalState";
1717
import { useState, type ChangeEventHandler, type FormEvent, type BaseSyntheticEvent } from "react";
18-
import { Box, TextField, Button, Tab, Tabs, Dialog, DialogContent } from '@mui/material';
18+
import { TextField, Button, Tab, Tabs, Dialog, DialogContent, styled, Box } from '@mui/material';
1919
import { useNavigate } from "react-router";
2020
import { postLogin, postSignin } from "../service/http-client";
2121
import { type UserResponse } from "../model/user";

frontend/app/react-app-env.d.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

frontend/app/root.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import reportWebVitals from './reportWebVitals';
1818
import { RecoilRoot } from 'recoil';
1919
import { BrowserRouter, Route, Routes } from 'react-router';
2020
import Login from './Login';
21-
import { styled } from '@mui/material/styles';
2221

2322
const root = ReactDOM.createRoot(
2423
document.getElementById('root') as HTMLElement

frontend/package-lock.json

Lines changed: 30 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
},
3333
"scripts": {
3434
"build": "react-router build",
35-
"dev": "react-router dev",
36-
"start": "react-router-serve ./build/server/index.js",
35+
"start": "react-router dev",
36+
"dev": "react-router-serve ./build/server/index.js",
3737
"typecheck": "react-router typegen && tsc",
3838
"prebuild": "rimraf ./build && mkdirp ./build",
3939
"postbuild": "npm run deploy",

frontend/vite.config.ts

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,7 @@ import { defineConfig } from "vite";
44
import tsconfigPaths from "vite-tsconfig-paths";
55

66
export default defineConfig({
7-
plugins: [tailwindcss(), reactRouter(), tsconfigPaths()],
8-
ssr: {
9-
// Workaround for resolving dependencies in the server bundle
10-
// Without this, the React context will be different between direct import and transitive imports in development environment
11-
// For more information, see https://github.com/mui/material-ui/issues/45878#issuecomment-2987441663
12-
optimizeDeps: {
13-
include: ['@emotion/*', '@mui/*'],
14-
},
15-
noExternal: ['@emotion/*', '@mui/*'],
16-
},
7+
plugins: [
8+
tailwindcss(),
9+
reactRouter(), tsconfigPaths()],
1710
});

0 commit comments

Comments
 (0)