Skip to content

Commit 6813baa

Browse files
authored
Add mjs as a file to serve statically (hestiacp#4240)
.mjs is used to denote a ES Module Javascript file, separating it from .js which typically contains a CommonJS, AMD or direct browser code. .mjs is increasingly being used to deliver ESM files over the web, not just for package builders, through the use of import maps.
1 parent 527f2bd commit 6813baa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-add-web-domain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ if [ -n "$PROXY_SYSTEM" ]; then
194194
PROXY_EXT="$proxy_ext"
195195
if [ -z "$proxy_ext" ]; then
196196
# Code
197-
PROXY_EXT="css,htm,html,js,json,xml"
197+
PROXY_EXT="css,htm,html,js,mjs,json,xml"
198198
# Image (from https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Image_types)
199199
PROXY_EXT="$PROXY_EXT,apng,avif,bmp,cur,gif,ico,jfif,jpg,jpeg,pjp,pjpeg,png,svg,tif,tiff,webp"
200200
# Audio from (https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Audio_codecs)

0 commit comments

Comments
 (0)