/** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: true, transpilePackages: ['@horux/shared', '@horux/ui'], experimental: { serverActions: { bodySizeLimit: '2mb', }, }, images: { remotePatterns: [ { protocol: 'https', hostname: '*.githubusercontent.com', }, { protocol: 'https', hostname: 'avatars.githubusercontent.com', }, ], }, async redirects() { return []; }, async headers() { return [ { source: '/api/:path*', headers: [ { key: 'Access-Control-Allow-Credentials', value: 'true' }, { key: 'Access-Control-Allow-Origin', value: '*' }, { key: 'Access-Control-Allow-Methods', value: 'GET,DELETE,PATCH,POST,PUT' }, { key: 'Access-Control-Allow-Headers', value: 'Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, Authorization' }, ], }, ]; }, }; module.exports = nextConfig;