chore: support disable image optimization
This commit is contained in:
parent
dc86cfacd8
commit
50f44fb84c
@ -76,7 +76,14 @@ NEXT_PUBLIC_STRIPE_PRICE_PRO_YEARLY=""
|
||||
NEXT_PUBLIC_STRIPE_PRICE_LIFETIME=""
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Analytics
|
||||
# Configurations
|
||||
# -----------------------------------------------------------------------------
|
||||
# Disable image optimization
|
||||
# -----------------------------------------------------------------------------
|
||||
DISABLE_IMAGE_OPTIMIZATION="false"
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Analytics
|
||||
# https://mksaas.com/docs/analytics#setup
|
||||
# -----------------------------------------------------------------------------
|
||||
# Google Analytics (https://analytics.google.com)
|
||||
|
@ -16,6 +16,10 @@ const nextConfig: NextConfig = {
|
||||
},
|
||||
|
||||
images: {
|
||||
// https://vercel.com/docs/image-optimization/managing-image-optimization-costs#minimizing-image-optimization-costs
|
||||
// https://nextjs.org/docs/app/api-reference/components/image#unoptimized
|
||||
// vercel has limits on image optimization, 1000 images per month
|
||||
unoptimized: process.env.DISABLE_IMAGE_OPTIMIZATION === 'true',
|
||||
remotePatterns: [
|
||||
{
|
||||
protocol: 'https',
|
||||
|
Loading…
Reference in New Issue
Block a user