mirror of
https://github.com/kremalicious/umami.git
synced 2025-01-27 10:36:19 +01:00
Fixed headers.
This commit is contained in:
parent
8dc4ffe1a5
commit
fb0ff247a8
@ -53,6 +53,10 @@ const trackerHeaders = [
|
||||
key: 'Access-Control-Allow-Origin',
|
||||
value: '*',
|
||||
},
|
||||
{
|
||||
key: 'Cache-Control',
|
||||
value: 'public, max-age=86400, must-revalidate',
|
||||
},
|
||||
];
|
||||
|
||||
const headers = [
|
||||
@ -189,22 +193,7 @@ const config = {
|
||||
return config;
|
||||
},
|
||||
async headers() {
|
||||
return [
|
||||
{
|
||||
source: '/:path*',
|
||||
headers,
|
||||
},
|
||||
{
|
||||
source: '/script.js',
|
||||
headers: [
|
||||
...headers,
|
||||
{
|
||||
key: 'Cache-Control',
|
||||
value: 'public, max-age=86400, must-revalidate',
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
return headers;
|
||||
},
|
||||
async rewrites() {
|
||||
return [
|
||||
|
Loading…
Reference in New Issue
Block a user