Skip to content

Commit

Permalink
feat: Add router
Browse files Browse the repository at this point in the history
  • Loading branch information
1ilsang committed Aug 20, 2023
1 parent a5ebbf8 commit 6ed2a3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/features/app/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@ const router = createRoutesFromElements(
</Route>,
);

export default createBrowserRouter(router);
export default createBrowserRouter(router, {
basename: '/just-label',
});
3 changes: 0 additions & 3 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';

import { homepage } from './package.json';

// https://vitejs.dev/config/
export default defineConfig(({ mode }) => {
return {
plugins: [react()],
base: mode === 'production' ? homepage : '/',
};
});

0 comments on commit 6ed2a3f

Please sign in to comment.