|
|
@@ -43,8 +43,6 @@ module.exports = defineConfig(({ mode }) => {
|
|
|
const outDir = output ? `dist/${output}` : "dist";
|
|
|
|
|
|
return {
|
|
|
- // 预览模式下通过 PREVIEW_BASE_PATH 设置 base 路径,如 /ads-preview/
|
|
|
- base: process.env.PREVIEW_BASE_PATH || undefined,
|
|
|
plugins: [viteSingleFile(), finalizeHtmlPlugin(outDir, adapter)],
|
|
|
server: {
|
|
|
allowedHosts: ["color2.jccytech.cn", "localhost", ".jccytech.cn"],
|