aboutsummaryrefslogtreecommitdiffstats
path: root/.htaccess
diff options
context:
space:
mode:
authorFerdinand Thiessen <rpm@fthiessen.de>2023-03-16 15:57:51 +0100
committerFerdinand Thiessen <rpm@fthiessen.de>2023-03-16 15:57:51 +0100
commitd461da3b04dfb2d6b7e6bad8ebf9b592d3008f20 (patch)
tree060ef46ef7c541554e2b6184c41bb0b612f56d97 /.htaccess
parenta3595f73acb538df0f3df96418d066d6a3ce60b8 (diff)
downloadnextcloud-server-d461da3b04dfb2d6b7e6bad8ebf9b592d3008f20.tar.gz
nextcloud-server-d461da3b04dfb2d6b7e6bad8ebf9b592d3008f20.zip
Adjust `.htaccess` to serve `.mjs` files with javascript mime type
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
Diffstat (limited to '.htaccess')
-rw-r--r--.htaccess2
1 files changed, 2 insertions, 0 deletions
diff --git a/.htaccess b/.htaccess
index dd0fce231e8..458154b545d 100644
--- a/.htaccess
+++ b/.htaccess
@@ -78,6 +78,8 @@
AddType image/svg+xml svg svgz
AddType application/wasm wasm
AddEncoding gzip svgz
+ # Serve ESM javascript files (.mjs) with correct mime type
+ AddType text/javascript js mjs
</IfModule>
<IfModule mod_dir.c>