Fix TS error.

This commit is contained in:
Brian Cao committed 2023-09-20 15:26:49 -07:00
1 parent 84e13a2a10
commit f7b2f50e4f
1 file changed
+1 -1
+1 -1
View File
@@ -21,7 +21,7 @@ const log = debug('umami:middleware');
export const useCors = createMiddleware(
cors({
// Cache CORS preflight request 24 hours by default
maxAge: process.env.CORS_MAX_AGE || 86400,
maxAge: Number(process.env.CORS_MAX_AGE) || 86400,
}),
);