mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-08 07:38:26 -05:00
service worker settings
This commit is contained in:
@@ -10,6 +10,12 @@ server {
|
||||
alias /media/;
|
||||
add_header Content-Disposition 'attachment; filename="$args"';
|
||||
}
|
||||
|
||||
# serve service worker under main path
|
||||
location = /service-worker.js {
|
||||
alias /opt/recipes/staticfiles/vue3/service-worker.js;
|
||||
}
|
||||
|
||||
# pass requests for dynamic content to gunicorn
|
||||
location / {
|
||||
proxy_set_header Host $http_host;
|
||||
|
||||
@@ -19,7 +19,7 @@ export default defineConfig({
|
||||
registerType: 'autoUpdate',
|
||||
strategies: 'injectManifest',
|
||||
srcDir: 'src',
|
||||
filename: 'sw.ts',
|
||||
filename: 'service-worker.ts',
|
||||
injectManifest: {
|
||||
swDest: "../cookbook/templates/sw.js",
|
||||
injectionPoint: undefined
|
||||
|
||||
Reference in New Issue
Block a user