fix(vite): 更新 fake-server 插件配置

- 修改 fake-server 插件的 enableProd 参数为 !true,禁用生产环境中的 fake API
- 在 vite 配置中添加 eruda,用于调试
- 注释掉部分配置选项,保留作为参考
This commit is contained in:
严浩
2025-09-02 09:32:29 +08:00
parent 04e7376085
commit 9e82ae98e6
2 changed files with 7 additions and 2 deletions

View File

@@ -166,7 +166,7 @@ export function Plugins() {
// https://github.com/condorheroblog/vite-plugin-fake-server?tab=readme-ov-file#usage
vitePluginFakeServer({
basename: 'fake-api',
enableProd: true,
enableProd: !true,
include: 'fake',
}),