Override Next.js tsconfig for express local development
✓ Published0🌍 Public
TTipTopCoder
Last edited Feb 16, 2020
Created on Feb 15, 2020
This example demonstrates how to override a Next.js TypeScript configuration for local Express server development. It shows a `tsconfig.server.json` file that extends the main project’s `tsconfig.json`, switching the module system to CommonJS and redirecting output to a `dist` folder. The file uses TypeScript’s `extends`, `compilerOptions` with `module`, `outDir`, and `noEmit`, plus an `include` array targeting the `server` directory. This setup allows Express code to compile separately from the Next.js client build.
AI-generated description