2026-10-02 15:42:11 +00:00
|
|
|
import localFont from 'next/font/local';
|
|
|
|
|
|
|
|
|
|
// Variable fonts from island. next/font self-hosts them, preloads the critical face,
|
|
|
|
|
// and adds a size-adjusted fallback so the swap doesn't shift the layout.
|
|
|
|
|
|
|
|
|
|
/** Yekan Bakh with Persian digit shapes: every UI text. */
|
|
|
|
|
export const yekanBakh = localFont({
|
|
|
|
|
src: '../../../../packages/island/src/fonts/yekan-bakh-fa-num-vf.woff2',
|
|
|
|
|
variable: '--font-yekan-bakh',
|
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
|
|
|
weight: '100 1000',
|
2026-10-02 15:42:11 +00:00
|
|
|
display: 'swap',
|
|
|
|
|
adjustFontFallback: 'Arial',
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/** Yekan Bakh with Latin digits: شبا and other bank codes. Loaded only where used. */
|
|
|
|
|
export const yekanBakhLatin = localFont({
|
|
|
|
|
src: '../../../../packages/island/src/fonts/yekan-bakh-vf.woff2',
|
|
|
|
|
variable: '--font-yekan-bakh-latin',
|
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
|
|
|
weight: '100 1000',
|
2026-10-02 15:42:11 +00:00
|
|
|
display: 'swap',
|
|
|
|
|
preload: false,
|
|
|
|
|
adjustFontFallback: 'Arial',
|
|
|
|
|
});
|