specify host=127.0.0.1 in build.mjs for cors

master
Avraham Sakal 2 years ago
parent b02c71d206
commit 345bded212

@ -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}/`);

Loading…
Cancel
Save