fix(nextjs): break server-only import leak in constants.ts

constants.ts re-exported STATUS from routing/index.ts, which pulled
server-only modules (next/headers, server-only) into client bundles
via the webpack module graph, breaking the Docker frontend-app build.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-19 04:33:27 +00:00
parent ead2d530a6
commit cc6c93b2df

View File

@@ -49,9 +49,18 @@ export const ENV_DEFAULTS = {
/**
* HTTP status codes
* Re-exported from routing for convenience
* Defined here directly to avoid pulling in routing's server-only dependencies.
*/
export { STATUS } from '@/lib/routing'
export const STATUS = {
OK: 200,
CREATED: 201,
BAD_REQUEST: 400,
UNAUTHORIZED: 401,
FORBIDDEN: 403,
NOT_FOUND: 404,
ERROR: 500,
INTERNAL_ERROR: 500,
} as const
/**
* Session cookie name