Fix Domain Access Issue in Latest Vite Version (#1444)

Fix the restriction on using domain names when users are using the latest version of Vite

When users use the new version of Vite, the UI cannot be accessed via domain names due to Vite's new rules. This fix adds the corresponding parameters according to Vite's new rules, ensuring that users can access the frontend via domain names when building the UI.

Fixes #1441

Co-authored-by: WenjiaoYue <wenjiao.yue@intel.com>
This commit is contained in:
WenjiaoYue
2025-01-21 23:28:37 +08:00
committed by GitHub
parent 927698e23e
commit b721c256f9
12 changed files with 32 additions and 18 deletions

View File

@@ -17,4 +17,7 @@ import { defineConfig } from "vite";
export default defineConfig({
plugins: [sveltekit()],
server: {
allowedHosts: true,
},
});