Skip to content

Commit

Permalink
feat: fix router
Browse files Browse the repository at this point in the history
  • Loading branch information
1ilsang committed Aug 20, 2023
1 parent 6ed2a3f commit aa49bc3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
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 aa49bc3

Please sign in to comment.