next.js
94b24646 - next.config.ts: Implement `compiler.defineServer` for server-only constants (#79225)

Commit
1 year ago
next.config.ts: Implement `compiler.defineServer` for server-only constants (#79225) Like `compiler.define`, this allows users to create compile-time constants both Turbopack and webpack from a single API. `compiler.defineServer` instead only makes these constants available for server or edge environments, not the client environment.
Author
Parents
Loading