mirror of
https://github.com/documenso/documenso.git
synced 2026-08-19 21:11:54 +10:00
feat: unify settings (#3128)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { PREFERRED_TEAM_URL_COOKIE } from '@documenso/lib/constants/cookies';
|
||||
import { AppDebugger } from '@documenso/lib/utils/debugger';
|
||||
import type { Context, Next } from 'hono';
|
||||
import { setCookie } from 'hono/cookie';
|
||||
@@ -49,7 +50,7 @@ export const appMiddleware = async (c: Context, next: Next) => {
|
||||
if (pathname.startsWith('/t/')) {
|
||||
debug.log('Setting preferred team url cookie');
|
||||
|
||||
setCookie(c, 'preferred-team-url', pathname.split('/')[2], {
|
||||
setCookie(c, PREFERRED_TEAM_URL_COOKIE, pathname.split('/')[2], {
|
||||
sameSite: 'lax',
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user