mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2026-01-01 04:08:45 -05:00
fix(frontend): set locale cookie expiration to be much longer
This commit is contained in:
@@ -75,7 +75,10 @@ const CoreApp: Omit<NextAppComponentType, 'origGetInitialProps'> = ({
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
loadLocaleData(currentLocale).then(setMessages);
|
loadLocaleData(currentLocale).then(setMessages);
|
||||||
setCookie(null, 'locale', currentLocale, { path: '/' });
|
setCookie(null, 'locale', currentLocale, {
|
||||||
|
path: '/',
|
||||||
|
maxAge: 60 * 60 * 24 * 365 * 10,
|
||||||
|
});
|
||||||
}, [currentLocale]);
|
}, [currentLocale]);
|
||||||
|
|
||||||
if (router.pathname.match(/(login|setup)/)) {
|
if (router.pathname.match(/(login|setup)/)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user