From 3dddd4ca7082b75965c934789f4ff7d4e8358baa Mon Sep 17 00:00:00 2001 From: Rajiv Shah Date: Mon, 22 Apr 2024 23:20:47 -0400 Subject: [PATCH 1/2] Fix WASM MIME type in Nginx config --- client/Dockerfile | 2 ++ client/nginx/wasm.conf | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 client/nginx/wasm.conf diff --git a/client/Dockerfile b/client/Dockerfile index 76e53ed49..42d23322a 100644 --- a/client/Dockerfile +++ b/client/Dockerfile @@ -24,6 +24,8 @@ RUN echo 'server {\ }\ }' > /etc/nginx/sites-available/default +RUN mv ./nginx/wasm.conf /etc/nginx/conf.d/wasm.conf + # Running required steps to prepare the web app prod build RUN npm install RUN npm run build diff --git a/client/nginx/wasm.conf b/client/nginx/wasm.conf new file mode 100644 index 000000000..686608e1e --- /dev/null +++ b/client/nginx/wasm.conf @@ -0,0 +1,3 @@ +types { + application/wasm wasm; +} From e4047b13bfd4083bf4f1e6752168fce1d40a178f Mon Sep 17 00:00:00 2001 From: Rajiv Shah Date: Tue, 23 Apr 2024 03:52:28 -0400 Subject: [PATCH 2/2] Add comment --- client/Dockerfile | 1 + client/nginx/wasm.conf | 1 + 2 files changed, 2 insertions(+) diff --git a/client/Dockerfile b/client/Dockerfile index 42d23322a..0c5b0f999 100644 --- a/client/Dockerfile +++ b/client/Dockerfile @@ -24,6 +24,7 @@ RUN echo 'server {\ }\ }' > /etc/nginx/sites-available/default +# Set Content-Type so streaming compilation works RUN mv ./nginx/wasm.conf /etc/nginx/conf.d/wasm.conf # Running required steps to prepare the web app prod build diff --git a/client/nginx/wasm.conf b/client/nginx/wasm.conf index 686608e1e..b5f4f5e4c 100644 --- a/client/nginx/wasm.conf +++ b/client/nginx/wasm.conf @@ -1,3 +1,4 @@ types { + # Set Content-Type so streaming compilation works application/wasm wasm; }