Skip to content

Commit

Permalink
chore: 还原base配置
Browse files Browse the repository at this point in the history
  • Loading branch information
huangmingfu committed Jan 10, 2025
1 parent c137c7a commit c0f9605
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 @@ -9,7 +9,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
// 获取`.env`环境配置文件
const env = loadEnv(mode, process.cwd());
return {
base: env.VITE_NODE_ENV === 'development' ? '/react-ts-template/' : undefined, // 此配置仅为github pages部署用,请自行修改或删除(一般情况下直接移除就行)
base: env.VITE_NODE_ENV === 'development' ? './' : undefined, // 此配置仅为github pages部署用,请自行修改或删除(一般情况下直接移除就行)
plugins: [
react(),
/**
Expand Down

0 comments on commit c0f9605

Please sign in to comment.