Skip to content

Instantly share code, notes, and snippets.

@callensm
Created December 14, 2022 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save callensm/d618c80d62e0f4ad1889c52cfd41f0e8 to your computer and use it in GitHub Desktop.
Save callensm/d618c80d62e0f4ad1889c52cfd41f0e8 to your computer and use it in GitHub Desktop.
Next.js Config for Vercel Support
const withBundleAnalyzer = require('@next/bundle-analyzer');
const { withSentryConfig } = require('@sentry/nextjs');
/** @type {import('next').NextConfig} */
const moduleExports = withBundleAnalyzer({ enabled: process.env.ANALYZER === 'true' })(
withSentryConfig(
{
sentry: { hideSourceMaps: true },
// swcMinify: true,
reactStrictMode: true,
images: {
minimumCacheTTL: 60,
domains: [
'arweave.net',
'xnfts-dev.s3.us-west-2.amazonaws.com',
'xnfts.s3.us-west-2.amazonaws.com',
'nftstorage.link',
'ipfs.io'
],
formats: ['image/avif', 'image/webp']
}
},
{
dryRun: process.env.VERCEL_ENV === undefined,
silent: process.env.NODE_ENV === 'development'
}
)
);
module.exports = moduleExports;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment