Skip to content

Commit

Permalink
fix: basename
Browse files Browse the repository at this point in the history
  • Loading branch information
heiso committed Jan 1, 2025
1 parent 7a028e1 commit 0bc94a6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions web-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"version": "0.0.0",
"scripts": {
"build": "cross-env NODE_ENV=production react-router build",
"preview": "react-router preview",
"dev": "react-router dev",
"start": "cross-env NODE_ENV=production react-router-serve ./build/server/index.js",
"typecheck": "react-router typegen && tsc && && eslint . && prettier --check .",
Expand Down
5 changes: 4 additions & 1 deletion web-app/react-router.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@ import type { Config } from '@react-router/dev/config'

export default {
ssr: false,
basename: '/macrolev',
basename: '/macrolev/',
future: {
unstable_optimizeDeps: true,
},
} satisfies Config
1 change: 1 addition & 0 deletions web-app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default defineConfig({
server: {
port: 3000,
},
base: '/macrolev/',
css: {
postcss: {
plugins: [tailwindcss, autoprefixer],
Expand Down

0 comments on commit 0bc94a6

Please sign in to comment.