Serve Piper worker with JavaScript MIME type
Build and publish frontend / publish (push) Successful in 51s
Build and publish frontend / publish (push) Successful in 51s
This commit is contained in:
+4
-1
@@ -10,7 +10,10 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location ^~ /tts/piper-wasm-v1/ {
|
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;
|
add_header Cache-Control "public, max-age=31536000, immutable" always;
|
||||||
try_files $uri =404;
|
try_files $uri =404;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 '<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 '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 'Cross-Origin-Embedder-Policy "require-corp"' nginx/default.conf
|
||||||
|
grep -q 'application/javascript js;' nginx/default.conf
|
||||||
grep -q "request('/version')" index.html
|
grep -q "request('/version')" index.html
|
||||||
grep -Fq "credentials: 'same-origin'" index.html
|
grep -Fq "credentials: 'same-origin'" index.html
|
||||||
grep -q 'id="dialogue" aria-label="Dialoghistorik" role="log" aria-live="polite"' index.html
|
grep -q 'id="dialogue" aria-label="Dialoghistorik" role="log" aria-live="polite"' index.html
|
||||||
|
|||||||
Reference in New Issue
Block a user