13 lines
566 B
TypeScript
13 lines
566 B
TypeScript
import 'server-only';
|
|
|
|
import { setEnv as setGardenRoofEnv } from '@lumina/garden-roof/env';
|
|
import { configureErrorHandler } from '@lumina/libs/error-handler';
|
|
|
|
import { clientEnv } from '../env';
|
|
import { ERROR_HANDLER_CONFIG } from './error-reporting';
|
|
|
|
// Fills the server module graph once, before rendering. The server reads nothing from the admin
|
|
// API (0062): every panel read runs in the browser, so no server HTTP client is configured.
|
|
setGardenRoofEnv({ apiBaseUrl: clientEnv.NEXT_PUBLIC_CLIENT_END_POINT });
|
|
configureErrorHandler(ERROR_HANDLER_CONFIG);
|