Skip to content

Commit

Permalink
Add types to nextConfig in default template (#34029)
Browse files Browse the repository at this point in the history
Enable editors to suggest properties for the config object. Also let TypeScript check for type errors in the configuration when using TypeScript

Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
  • Loading branch information
mohsen1 and ijjk committed Feb 6, 2022
1 parent 6b73acf commit 0fd2f3b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/create-next-app/templates/default/next.config.js
@@ -1,3 +1,6 @@
module.exports = {
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
}

module.exports = nextConfig

0 comments on commit 0fd2f3b

Please sign in to comment.