another step for constructing base project

This commit is contained in:
hamid
2026-06-17 22:53:49 +03:30
parent 5b4c0d183f
commit 5388bea320
76 changed files with 3836 additions and 1961 deletions
+18
View File
@@ -0,0 +1,18 @@
export const COOKIE_NAMES = {
COLOR_SCHEME: 'color-scheme',
} as const;
export type CookieName = (typeof COOKIE_NAMES)[keyof typeof COOKIE_NAMES];
export interface CookieOptions {
path?: string;
maxAge?: number;
sameSite?: 'strict' | 'lax' | 'none';
secure?: boolean;
}
export const COLOR_SCHEME_COOKIE_OPTIONS: CookieOptions = {
path: '/',
maxAge: 60 * 60 * 24 * 365,
sameSite: 'lax',
};