- 在 templates/coloring/vite.config.js 中添加 server.allowedHosts - nginx 代理请求时 Host header 为 color2.jccytech.cn,Vite 默认拒绝
@@ -44,6 +44,9 @@ module.exports = defineConfig(({ mode }) => {
return {
plugins: [viteSingleFile(), finalizeHtmlPlugin(outDir, adapter)],
+ server: {
+ allowedHosts: ["color2.jccytech.cn", "localhost", ".jccytech.cn"],
+ },
resolve: {
alias: {
"#ad-config": path.resolve(