Vercel/next.config.js
2023-10-14 12:21:09 -05:00

28 lines
640 B
JavaScript

/** @type {import('next').NextConfig} */
const STORE_ID = process.env.BLOB_READ_WRITE_TOKEN?.match(
/^vercel_blob_rw_([a-z0-9]+)_[a-z0-9]+$/i,
)?.[1].toLowerCase();
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
});
const nextConfig = {
images: {
imageSizes: [200, 400, 1050],
remotePatterns: [{
protocol: 'https',
hostname: `${STORE_ID}.public.blob.vercel-storage.com`,
port: '',
pathname: '/**',
}],
minimumCacheTTL: 31536000,
},
experimental: {
serverActions: true,
},
};
module.exports = withBundleAnalyzer(nextConfig);