From 8bfe60158855bfa8d377ba5167011c602c4a67fd Mon Sep 17 00:00:00 2001 From: hayden Date: Tue, 5 Nov 2024 16:46:30 +0800 Subject: [PATCH] chore: optimize development address --- vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index c912982..4126f68 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -79,7 +79,7 @@ function dev(): Plugin { fs.mkdirSync(outDirPath) const port = server.config.server.port - const content = `import "http://127.0.0.1:${port}/src/main.ts";` + const content = `import "http://localhost:${port}/src/main.ts";` fs.writeFileSync(path.join(outDirPath, 'manager-dev.js'), content) }) },