1
0
forked from baron/baron-sso

fix(userfront): serve mjs/wasm with correct mime types

This commit is contained in:
Lectom C Han
2026-02-13 12:06:23 +09:00
parent 1bc2cfb507
commit 4178152e29

View File

@@ -36,6 +36,21 @@ server {
}
# --- UserFront Static Files ---
# dart2wasm 엔트리포인트는 module 스크립트(.mjs)로 로드되므로
# MIME이 정확히 내려가지 않으면 브라우저가 로딩을 차단합니다.
location ~* \.mjs$ {
root /usr/share/nginx/html;
default_type application/javascript;
try_files $uri =404;
}
# dart2wasm 바이너리 MIME 명시
location ~* \.wasm$ {
root /usr/share/nginx/html;
default_type application/wasm;
try_files $uri =404;
}
location / {
root /usr/share/nginx/html;
index index.html;