diff --git a/vite.config.ts b/vite.config.ts index d5bd045..4231c50 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -7,8 +7,10 @@ export default defineConfig({ server: { host: '::', allowedHosts: [ - '*.mymoyu.top', - "*", + '.mymoyu.top', // 注意是点开头,不是星号 + 'localhost', + '127.0.0.1', + '192.168.1.4' ], }, plugins: [react()],