Files
QR-master/next.config.mjs
Timo Knuth b628930d55 fix: prevent trailing slash redirects for API routes
Adds skipTrailingSlashRedirect to prevent HTTP 301 redirects
  on API endpoints like /api/stripe/webhook. This ensures
  webhooks and external integrations work reliably.

  🤖 Generated with Claude Code
2026-01-05 10:43:23 +01:00

25 lines
768 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'standalone',
skipTrailingSlashRedirect: true,
images: {
unoptimized: false,
domains: ['www.qrmaster.net', 'qrmaster.net', 'images.qrmaster.net'],
formats: ['image/webp', 'image/avif'],
deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],
},
experimental: {
serverComponentsExternalPackages: ['@prisma/client', 'bcryptjs'],
},
// Allow build to succeed even with prerender errors
// Pages with useSearchParams() will be rendered dynamically at runtime
staticPageGenerationTimeout: 120,
onDemandEntries: {
maxInactiveAge: 25 * 1000,
pagesBufferLength: 2,
},
};
export default nextConfig;