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.
main
Antonio De Lucreziis 11 months ago committed by GitHub
parent c4bc6697e7
commit 876a47a6d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -9,7 +9,7 @@ export default defineConfig({
server: {
port: 3000,
proxy: {
'/api': 'http://localhost:4000/',
'/api': 'http://127.0.0.1:4000/',
},
},
plugins: [preactPlugin()],

Loading…
Cancel
Save