t3-env icon indicating copy to clipboard operation
t3-env copied to clipboard

Update env next import docs for Next v15

Open JulianKingman opened this issue 7 months ago • 2 comments

Next 15 allows importing directly into next.config.ts

Seems to be working great, much easier to use.

JulianKingman avatar May 07 '25 15:05 JulianKingman

@JulianKingman is attempting to deploy a commit to the t3-oss Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar May 07 '25 15:05 vercel[bot]

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
t3-env ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 3, 2025 1:13pm

vercel[bot] avatar May 07 '25 15:05 vercel[bot]

@JulianKingman

Is it correct that when using split env files for server and client, we just need to import both like this?

// next.config.ts
import type { NextConfig } from "next";

import "@/env/server";
import "@/env/client";

const nextConfig: NextConfig = {};

export default nextConfig;

bennajah avatar Nov 20 '25 20:11 bennajah