/** @type {import('next').NextConfig} */ const nextConfig = { images: { domains: ['api.scryfall.com', 'images.pokemontcg.io', 'lorcana-api.com'], }, async headers() { return [ { source: '/api/(.*)', headers: [ { key: 'Access-Control-Allow-Origin', value: '*', }, { key: 'Access-Control-Allow-Methods', value: 'GET, POST, PUT, DELETE, OPTIONS', }, { key: 'Access-Control-Allow-Headers', value: 'Content-Type, Authorization', }, ], }, ]; }, }; module.exports = nextConfig;