Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .changeset/optional-strict-shared.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

#### Make `env/internal/shared.ts` optional in strict layout

Strict layout auto-detection and schema discovery now treat `client.ts` + `server.ts` as enough. Explicit `layout: "strict"` no longer requires `internal/shared.ts`; when the file is absent, shared keys are treated as empty.
Strict layout now works with just `client.ts` and `server.ts`. Omit `internal/shared.ts` when you have nothing to share — shared keys are treated as empty.

```ts
// env/client.ts + env/server.ts alone is valid strict layout
// env/client.ts + env/server.ts alone is enough
export default withArkEnv(nextConfig, {
layout: "strict",
});
Expand Down
Loading