specify host=127.0.0.1 in build.mjs for cors

This commit is contained in:
2023-06-18 14:45:20 -04:00
parent b02c71d206
commit 345bded212
+2 -1
View File
@@ -13,7 +13,8 @@ if(process.argv[2] === 'serve'){
const context = await esbuild.context(config);
const {host, port} = await context.serve({
servedir: 'dist'
servedir: 'dist',
host: '127.0.0.1'
});
console.log(`Listening on http://${host}:${port}/`);