Serve Piper worker with JavaScript MIME type
Build and publish frontend / publish (push) Successful in 51s

This commit is contained in:
Ein Anderssono
2026-10-16 06:55:24 +02:00
parent fb0c253cee
commit 0ecae41a78
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -10,7 +10,10 @@ server {
}
location ^~ /tts/piper-wasm-v1/ {
types { application/wasm wasm; }
types {
application/wasm wasm;
application/javascript js;
}
add_header Cache-Control "public, max-age=31536000, immutable" always;
try_files $uri =404;
}
+1
View File
@@ -8,6 +8,7 @@ grep -q '<script src="/voice.js?v=__FRONTEND_VERSION__"></script>' index.html
grep -q '<script src="/piper-runtime.js?v=__FRONTEND_VERSION__"></script>' index.html
grep -q 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0' nginx/default.conf
grep -q 'Cross-Origin-Embedder-Policy "require-corp"' nginx/default.conf
grep -q 'application/javascript js;' nginx/default.conf
grep -q "request('/version')" index.html
grep -Fq "credentials: 'same-origin'" index.html
grep -q 'id="dialogue" aria-label="Dialoghistorik" role="log" aria-live="polite"' index.html