Add type checking to the next config

This commit is contained in:
Manav Rathi 2024-02-17 12:17:36 +05:30
parent 58fc035fae
commit 357cbf66c8

View file

@ -1,3 +1,5 @@
// @ts-check
/**
* @file Configure the Next.js build
*
@ -16,6 +18,9 @@ const gitSHA = cp.execSync('git rev-parse --short HEAD', {
encoding: 'utf8',
});
/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
/* generate a static export when we run `next build` */
output: 'export',