/** @type {import('next').NextConfig} */ const nextConfig = { experimental: { serverComponentsExternalPackages: ['ical.js', 'tsdav', 'apple-icloud'], }, webpack: (config, { isServer }) => { // Ignore .md files in node_modules (fixes apple-icloud README.md parse error) config.module.rules.push({ test: /\.md$/, include: /node_modules/, type: 'asset/source', }); return config; }, }; module.exports = nextConfig;