Platform
Windows
Operating system version
Windows 11 Build 26200.8328
System architecture
Intel (x86)
Herd Version
1.28.0
PHP Version
PHP 8.5.5
Bug description
We are using .mjs files within our project, and the default Nginx configuration doesn't specify a correct MIME-type for these files.
Because the browser enforces strict type checking for module files, you get the error below:
.
It's a relatively small problem, fixed by adding the following line to the nginx.conf:

Could this be added by default to Herd installations? It would reduce the modifications we have to make when onboarding team members or reinstalling software.
Steps to reproduce
Include any .mjs file as a module using a script tag.
Relevant log output
Platform
Windows
Operating system version
Windows 11 Build 26200.8328
System architecture
Intel (x86)
Herd Version
1.28.0
PHP Version
PHP 8.5.5
Bug description
We are using .mjs files within our project, and the default Nginx configuration doesn't specify a correct MIME-type for these files.
Because the browser enforces strict type checking for module files, you get the error below:
.
It's a relatively small problem, fixed by adding the following line to the

nginx.conf:Could this be added by default to Herd installations? It would reduce the modifications we have to make when onboarding team members or reinstalling software.
Steps to reproduce
Include any
.mjsfile as a module using a script tag.Relevant log output