mirror of
https://github.com/documenso/documenso.git
synced 2025-11-12 07:43:16 +10:00
11 lines
257 B
TypeScript
11 lines
257 B
TypeScript
import { createCookie } from 'react-router';
|
|
|
|
import { env } from '@documenso/lib/utils/env';
|
|
|
|
export const langCookie = createCookie('lang', {
|
|
path: '/',
|
|
maxAge: 60 * 60 * 24 * 365 * 2,
|
|
httpOnly: true,
|
|
secure: env('NODE_ENV') === 'production',
|
|
});
|