Skip to content

Commit

Permalink
run eslint/tsc during build for renovate PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeKarow committed Mar 7, 2024
1 parent 07d6f8a commit c43b439
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions apps/app/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ const isVercelProd = process.env.VERCEL_ENV === 'production'
const isLocalDev =
process.env.NODE_ENV === 'development' && !['preview', 'production'].includes(process.env.VERCEL_ENV)
const shouldAnalyze = process.env.ANALYZE === 'true'
const renovateRegex = /^renovate\/.*$/
const isRenovatePR = renovateRegex.test(process.env.VERCEL_GIT_COMMIT_REF)

const withRoutes = routes({ outDir: './src/types' })
const withBundleAnalyzer = bundleAnalyze({ enabled: shouldAnalyze, openAnalyzer: false })
Expand Down Expand Up @@ -50,16 +52,16 @@ const nextConfig = {
serverComponentsExternalPackages: ['@sentry/profiling-node'],
},
eslint: {
ignoreDuringBuilds: !isVercelProd,
ignoreDuringBuilds: !isVercelProd || !isRenovatePR,
},
typescript: {
ignoreBuildErrors: !isVercelProd || !isRenovatePR,
},
images: {
remotePatterns: [{ protocol: 'https', hostname: '**.4sqi.net' }],
},
rewrites: async () => [{ source: '/search', destination: '/' }],

typescript: {
ignoreBuildErrors: !isVercelProd,
},
sentry: {
// For all available options, see:
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
Expand Down

0 comments on commit c43b439

Please sign in to comment.