next.config.js
36 files
Configures Next.js build and runtime behavior for the Firebase Todo application.
Concept | Description |
|---|---|
| Next.js Config | Controls framework behavior and build settings |
| Image Optimization | Configure allowed external image domains |
| Build Settings | Customize compilation and bundling |
| Runtime Settings | Server and client runtime configuration |
The next.config.js file is the central configuration file for Next.js applications.
It allows you to customize:
Type-checked with JSDoc @type annotation for autocomplete and IntelliSense.
TypeScript type annotation for configuration autocomplete.
The @type comment provides type checking and autocomplete even in JavaScript files.
// Without @type: No autocomplete
const nextConfig = { ... }
// With @type: Full autocomplete and type checking
/ * @type {import('next').NextConfig} /
const nextConfig = { ... }
@type {import('next').NextConfig}