/** @type {import('next').NextConfig} */ const nextConfig = { output: 'standalone', images: { remotePatterns: [ { protocol: 'https', hostname: 's3.1080p.hk', }, { protocol: 'http', hostname: 's3.1080p.hk', }, ], }, experimental: { serverActions: { bodySizeLimit: '3gb', // Server Actions 的限制 (3GB) }, }, // 注意:CORS配置移到middleware.ts中处理,因为需要动态设置origin // 当使用credentials时,不能使用通配符* } module.exports = nextConfig