Skip to content

Commit

Permalink
📦 chore: add vite config base url for github-page
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim876633 committed Aug 28, 2023
1 parent da170a8 commit d2d6f69
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
})
base: process.env.NODE_ENV === "production" ? "/vite-react-jest/" : "/",
});

0 comments on commit d2d6f69

Please sign in to comment.