mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 16:45:35 +01:00
Fix TS error.
This commit is contained in:
parent
84e13a2a10
commit
f7b2f50e4f
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ const log = debug('umami:middleware');
|
||||||
export const useCors = createMiddleware(
|
export const useCors = createMiddleware(
|
||||||
cors({
|
cors({
|
||||||
// Cache CORS preflight request 24 hours by default
|
// Cache CORS preflight request 24 hours by default
|
||||||
maxAge: process.env.CORS_MAX_AGE || 86400,
|
maxAge: Number(process.env.CORS_MAX_AGE) || 86400,
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue