Fixes a weird NodeJS bug

It looks like that from some version NodeJS decided to do localhost requests on IPv6 first instead of IPv4 https://github.com/nodejs/node/issues/40537, so we can't use "localhost" directly any more without changing everything to IPv6.
This commit is contained in:
2023-04-08 01:39:30 +02:00
committed by GitHub
parent c4bc6697e7
commit 876a47a6d3
+1 -1
View File
@@ -9,7 +9,7 @@ export default defineConfig({
server: { server: {
port: 3000, port: 3000,
proxy: { proxy: {
'/api': 'http://localhost:4000/', '/api': 'http://127.0.0.1:4000/',
}, },
}, },
plugins: [preactPlugin()], plugins: [preactPlugin()],