hello i need help. vercel shows me this error:
Invalid next.config.js options detected:
- The root value has an unexpected property, 0, which is not in the list of allowed properties (amp, analyticsId, assetPrefix, basePath, cleanDistDir, compiler, compress, crossOrigin, devIndicators, distDir, env, eslint, excludeDefaultMomentLocales, experimental, exportPathMap, future, generateBuildId, generateEtags, headers, httpAgentOptions, i18n, images, onDemandEntries, optimizeFonts, output, outputFileTracing, pageExtensions, poweredByHeader, productionBrowserSourceMaps, publicRuntimeConfig, reactStrictMode, redirects, rewrites, sassOptions, serverRuntimeConfig, staticPageGenerationTimeout, swcMinify, trailingSlash, typescript, useFileSystemPublicRoutes, webpack).
My next.config.js looks like this:
const withPWA = require("next-pwa");
module.exports = withPWA({
images: {
domains: [ "cdn.discordapp.com" ]
},
i18n: {
locales: Object.keys(require(`${process.cwd()}/locales.config.js`)),
defaultLocale: 'en',
localeDetection: true,
},
pwa: {
dest: "public",
register: true,
skipWaiting: true,
},
async redirects() {
return [
{
source: '/invite',
destination: 'https://api.giveaways-bot.com/v1/invite/bot',
permanent: true,
},
]
},
});
im not sure how i can fix it. can someone help me?