Skip to content

Commit

Permalink
update the rule of agenda to nginx file
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlivino committed Sep 10, 2024
1 parent 1a79fb1 commit a3bd141
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion nginx.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ server {
root /usr/share/nginx/html;
index index.html;

location / {
location /agenda {
try_files $$uri /index.html;
}
}
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { AppRoutes } from "./routes";
function App() {
return (
<>
<BrowserRouter basename="/agenda">
<BrowserRouter>
<AppRoutes />
</BrowserRouter>
</>
Expand Down
6 changes: 3 additions & 3 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ export default defineConfig({
build: {
rollupOptions: {
output: {
assetFileNames: "agenda/assets/[name].[hash][extname]",
chunkFileNames: "agenda/[name].[hash].js",
entryFileNames: "agenda/[name].[hash].js",
assetFileNames: "assets/[name].[hash][extname]",
chunkFileNames: "[name].[hash].js",
entryFileNames: "[name].[hash].js",
},
},
},
Expand Down

0 comments on commit a3bd141

Please sign in to comment.