From 064dbaaa84d230f1b2d71597891a747d428de989 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 29 May 2024 14:42:50 +0900 Subject: fix(blog/nginx): fix content-type of *.mjs --- vhosts/blog/nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vhosts/blog/nginx.conf b/vhosts/blog/nginx.conf index 32787c78..7cc8bda1 100644 --- a/vhosts/blog/nginx.conf +++ b/vhosts/blog/nginx.conf @@ -9,6 +9,11 @@ server { types { } default_type "application/atom+xml; charset=utf-8"; } + + location ~* \.mjs$ { + types { } + default_type "application/javascript; charset=utf-8"; + } } error_page 404 /404.html; -- cgit v1.2.3-70-g09d2