We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c137c7a commit c0f9605Copy full SHA for c0f9605
vite.config.ts
@@ -9,7 +9,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
9
// 获取`.env`环境配置文件
10
const env = loadEnv(mode, process.cwd());
11
return {
12
- base: env.VITE_NODE_ENV === 'development' ? '/react-ts-template/' : undefined, // 此配置仅为github pages部署用,请自行修改或删除(一般情况下直接移除就行)
+ base: env.VITE_NODE_ENV === 'development' ? './' : undefined, // 此配置仅为github pages部署用,请自行修改或删除(一般情况下直接移除就行)
13
plugins: [
14
react(),
15
/**
0 commit comments