Theo's Typesafe CultTTC
Theo's Typesafe Cult9mo ago
9 replies
prudent

t3 env vercel deployment

attempting to use t3env and keep having build errors for vercel, any help would be appreciated

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, }, };
image.png
Solution
Resolved with the next.config.ts below

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
Was this page helpful?