Skip to content

Commit

Permalink
ignore typescript errors during build
Browse files Browse the repository at this point in the history
  • Loading branch information
feledori committed Oct 15, 2024
1 parent bc1bf9f commit f023494
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import bundleAnalyzer from '@next/bundle-analyzer'

/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
experimental: {
Expand All @@ -14,6 +15,9 @@ const nextConfig = {
optimizeCss: true,
nextScriptWorkers: true,
},
typescript: {
ignoreBuildErrors: true,
},
images: {
dangerouslyAllowSVG: true,
remotePatterns: [
Expand Down Expand Up @@ -70,12 +74,12 @@ const nextConfig = {
],
}

const withBundleAnalyzer = bundleAnalyzer({
const bundleAnalyzerPlugin = bundleAnalyzer({
enabled: process.env.ANALYZE === 'true',
})

const NextApp = () => {
const plugins = [withBundleAnalyzer]
const plugins = [bundleAnalyzerPlugin]
return plugins.reduce((config, plugin) => plugin(config), nextConfig)
}

Expand Down

0 comments on commit f023494

Please sign in to comment.