mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user