Skip to content

Commit 17c582e

Browse files
committed
Fixes #387
1 parent 6c83d7f commit 17c582e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

docs/00_Getting_Started.md

+25
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,31 @@ To export, run the `daux` command and your documentation will be generated in `s
142142

143143
Now that you got the basics, you can also [see what you can configure](05_Configuration/_index.md)
144144

145+
### Server Configuration
146+
147+
We are using `.mjs` file types. Which not every web server properly understands and serves.
148+
149+
You might see an error like `Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "application/octet-stream". Strict MIME type checking is enforced for module scripts per HTML spec.`
150+
151+
#### Apache
152+
153+
If you are using a version under 2.5.1 of Apache HTTPd.
154+
155+
Add the following line within `.htaccess`, vhost or server configuration.
156+
157+
```
158+
AddType application/javascript .mjs
159+
```
160+
161+
#### nginx
162+
163+
```
164+
include mime.types;
165+
types {
166+
application/javascript js mjs;
167+
}
168+
```
169+
145170
## PHP Requirements
146171

147172
Daux.io is compatible with the [officially supported](https://www.php.net/supported-versions.php) PHP versions; 8.1.0 and up.

0 commit comments

Comments
 (0)