2026-10-09 14:46:36 +00:00
|
|
|
import { FlexBox } from '@lumina/island/atoms/flex-box';
|
|
|
|
|
import { Element } from '@lumina/island/primitives/element';
|
feat(apps): bootstrap, env, i18n, providers, error pages and session proxy
- env validated with the env lib (NEXT_PUBLIC_API_ORIGIN, API_INTERNAL_ORIGIN,
site URL, support config); .env.example per app
- client bootstrap: API base under /v1, one shared session refresh, error
mapping; server bootstrap: cookie forwarding for server renders
- i18n instance for the server, bound to react-i18next on the client
- root layout, AppProviders, global-error, not-found and a page boundary in
every route group; instrumentation reports uncaught server errors
- proxy.ts refreshes an expired session before rendering
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 17:33:07 +00:00
|
|
|
import { StatusEmptyState } from '@lumina/market/app/error-boundaries';
|
2026-10-09 14:46:36 +00:00
|
|
|
import { DesktopHeader } from '@lumina/market/app/navigation';
|
feat(apps): bootstrap, env, i18n, providers, error pages and session proxy
- env validated with the env lib (NEXT_PUBLIC_API_ORIGIN, API_INTERNAL_ORIGIN,
site URL, support config); .env.example per app
- client bootstrap: API base under /v1, one shared session refresh, error
mapping; server bootstrap: cookie forwarding for server renders
- i18n instance for the server, bound to react-i18next on the client
- root layout, AppProviders, global-error, not-found and a page boundary in
every route group; instrumentation reports uncaught server errors
- proxy.ts refreshes an expired session before rendering
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 17:33:07 +00:00
|
|
|
import type { Metadata } from 'next';
|
2026-10-09 14:46:36 +00:00
|
|
|
import { Suspense } from 'react';
|
feat(apps): bootstrap, env, i18n, providers, error pages and session proxy
- env validated with the env lib (NEXT_PUBLIC_API_ORIGIN, API_INTERNAL_ORIGIN,
site URL, support config); .env.example per app
- client bootstrap: API base under /v1, one shared session refresh, error
mapping; server bootstrap: cookie forwarding for server renders
- i18n instance for the server, bound to react-i18next on the client
- root layout, AppProviders, global-error, not-found and a page boundary in
every route group; instrumentation reports uncaught server errors
- proxy.ts refreshes an expired session before rendering
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 17:33:07 +00:00
|
|
|
|
|
|
|
|
export const metadata: Metadata = { robots: { index: false } };
|
|
|
|
|
|
2026-10-09 14:46:36 +00:00
|
|
|
/**
|
|
|
|
|
* A missing page or post, outside every route group (G-4d): the header over the calm state in the
|
|
|
|
|
* 640 column, with the way home.
|
|
|
|
|
*/
|
feat(apps): bootstrap, env, i18n, providers, error pages and session proxy
- env validated with the env lib (NEXT_PUBLIC_API_ORIGIN, API_INTERNAL_ORIGIN,
site URL, support config); .env.example per app
- client bootstrap: API base under /v1, one shared session refresh, error
mapping; server bootstrap: cookie forwarding for server renders
- i18n instance for the server, bound to react-i18next on the client
- root layout, AppProviders, global-error, not-found and a page boundary in
every route group; instrumentation reports uncaught server errors
- proxy.ts refreshes an expired session before rendering
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 17:33:07 +00:00
|
|
|
export default function NotFound() {
|
2026-10-09 14:46:36 +00:00
|
|
|
return (
|
|
|
|
|
<FlexBox direction="flex-col" className="min-h-dvh bg-bg-page">
|
|
|
|
|
{/* Prerendered outside every route group: the bar reads the address (its login link keeps
|
|
|
|
|
the page), so it waits for the browser behind a same-size frame. */}
|
|
|
|
|
<Suspense
|
|
|
|
|
fallback={
|
|
|
|
|
<Element className="min-h-16 border-b border-border-subtle bg-surface" />
|
|
|
|
|
}
|
|
|
|
|
>
|
|
|
|
|
<DesktopHeader />
|
|
|
|
|
</Suspense>
|
|
|
|
|
<FlexBox
|
|
|
|
|
tag="main"
|
|
|
|
|
justifyContent="justify-center"
|
|
|
|
|
className="flex-1 px-8 py-10"
|
|
|
|
|
>
|
|
|
|
|
<FlexBox direction="flex-col" className="w-full max-w-content">
|
|
|
|
|
<StatusEmptyState variant="not-found" size="page" />
|
|
|
|
|
</FlexBox>
|
|
|
|
|
</FlexBox>
|
|
|
|
|
</FlexBox>
|
|
|
|
|
);
|
feat(apps): bootstrap, env, i18n, providers, error pages and session proxy
- env validated with the env lib (NEXT_PUBLIC_API_ORIGIN, API_INTERNAL_ORIGIN,
site URL, support config); .env.example per app
- client bootstrap: API base under /v1, one shared session refresh, error
mapping; server bootstrap: cookie forwarding for server renders
- i18n instance for the server, bound to react-i18next on the client
- root layout, AppProviders, global-error, not-found and a page boundary in
every route group; instrumentation reports uncaught server errors
- proxy.ts refreshes an expired session before rendering
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 17:33:07 +00:00
|
|
|
}
|