Skip to content

Commit 6f3b8cd

Browse files
committed
fix: basename
1 parent b97e635 commit 6f3b8cd

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

frontend/app/routes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
import { type RouteConfig, index, route } from "@react-router/dev/routes";
1414

1515
export default [
16-
index("routes/home.tsx"),
17-
route("app/app", "routes/app.tsx"),
16+
index("routes/home.tsx"),
17+
route("app/app", "routes/app.tsx"),
1818
] satisfies RouteConfig;

frontend/react-router.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ export default {
1616
// Config options...
1717
// Server-side render by default, to enable SPA mode set this to `false`
1818
ssr: false,
19+
basename: "/public/",
1920
} satisfies Config;

frontend/vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import tsconfigPaths from "vite-tsconfig-paths";
1717

1818
export default defineConfig({
1919
plugins: [tailwindcss(), reactRouter(), tsconfigPaths()],
20+
base: "/public/",
2021
server: {
2122
proxy: {
2223
// Proxy all requests starting with /api to http://localhost:3000

0 commit comments

Comments
 (0)