/** @type {import('next').NextConfig} */ const nextConfig = { experimental: { serverComponentsExternalPackages: ['maplibre-gl'], }, webpack: (config) => { config.resolve.alias = { ...config.resolve.alias, 'maplibre-gl': 'maplibre-gl', } return config }, images: { remotePatterns: [ { protocol: 'https', hostname: '**.supabase.co' }, { protocol: 'https', hostname: 'api.maptiler.com' }, ], }, } export default nextConfig