chore: standardize ESM-first architecture and resolve all type/test/lint errors
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 8s
Build & Deploy / 🧪 QA (push) Failing after 59s
Build & Deploy / 🏗️ Build (push) Has been skipped
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 2s

This commit is contained in:
2026-02-11 01:33:44 +01:00
parent eefabfa3ff
commit a12759d507
8 changed files with 181 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
import { z } from 'zod';
import { validateMintelEnv, mintelEnvSchema } from '@mintel/next-utils';
import { validateMintelEnv, mintelEnvSchema, withMintelRefinements } from '@mintel/next-utils';
/**
* Environment variable schema.
@@ -25,9 +25,9 @@ const envExtension = {
};
/**
* Full schema including Mintel base
* Full schema including Mintel base and refinements
*/
export const envSchema = z.object(mintelEnvSchema).extend(envExtension);
export const envSchema = withMintelRefinements(z.object(mintelEnvSchema).extend(envExtension));
/**
* Validated environment object.