18 lines
808 B
TypeScript
18 lines
808 B
TypeScript
/**
|
|
* Entry point: @intecion/ipal-kit/env
|
|
*
|
|
* Environment validation ONLY — zero imports beyond this module, no Payload,
|
|
* no Node built-ins, no React. Safe for Next's instrumentation.ts, which Next
|
|
* also compiles for the Edge runtime: importing the package root there drags in
|
|
* Payload / file-type / fs and crashes Turbopack ("Export fileTypeFromFile
|
|
* doesn't exist in target module").
|
|
*
|
|
* // src/instrumentation.ts
|
|
* import { assertEnv, ipalEnvRules } from '@intecion/ipal-kit/env'
|
|
* export function register() {
|
|
* if (process.env.NEXT_RUNTIME === 'nodejs') assertEnv(ipalEnvRules({ storage: true }))
|
|
* }
|
|
*/
|
|
export { assertEnv, ipalEnvRules } from '../modules/env/index.js';
|
|
export type { AssertEnvOptions, EnvKind, EnvRule, IpalEnvFeatures } from '../modules/env/index.js';
|