t3 env vercel deployment
attempting to use t3env and keep having build errors for vercel, any help would be appreciated
next config below
next config below
import {createJiti} from 'jiti';
import { fileURLToPath } from 'node:url';
const jiti = createJiti(fileURLToPath(import.meta.url));
await jiti.import('./src/env');
/** @type {import('next').NextConfig} */
export default {
eslint: {
ignoreDuringBuilds: true,
},
typescript: {
ignoreBuildErrors: true,
},
};

Solution
Resolved with the next.config.ts below
got the import syntax from create-t3-app boilerplate code
cheers
got the import syntax from create-t3-app boilerplate code
/**
* Run build or dev with SKIP_ENV_VALIDATION to skip env validation. This is especially useful
* for Docker builds.
*/
import './src/env.ts';
import type { NextConfig } from 'next';
const nextConfig: NextConfig = {
eslint: {
ignoreDuringBuilds: true,
},
typescript: {
ignoreBuildErrors: true,
},
};
export default nextConfig;
cheers
