From 345bded212776a09c6a30a8d56a82213de090cea Mon Sep 17 00:00:00 2001 From: Avraham Sakal Date: Sun, 18 Jun 2023 14:45:20 -0400 Subject: [PATCH] specify host=127.0.0.1 in build.mjs for cors --- build.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.mjs b/build.mjs index b71faf2..550b954 100644 --- a/build.mjs +++ b/build.mjs @@ -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}/`);