Skip to content

Commit

Permalink
feat(vite): Add development base path
Browse files Browse the repository at this point in the history
  • Loading branch information
1ilsang committed Aug 19, 2023
1 parent cc7fc5e commit bfaf08e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ import { homepage } from './package.json';
export default defineConfig(({ mode }) => {
return {
plugins: [react()],
base: mode === 'production' && homepage,
base: mode === 'production' ? homepage : '/',
};
});

0 comments on commit bfaf08e

Please sign in to comment.