Skip to content

Commit

Permalink
Add types to nextConfig in default template (vercel#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
2 people authored and natew committed Feb 16, 2022
1 parent cd4fc4c commit 76cf929
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 76cf929

Please sign in to comment.