Closed josharnow closed 1 month ago
Run actions/configure-pages@v5 with: static_site_generator: next token: *** enablement: false Injecting property=output and value=export in: import MillionLint from '@million/lint'; import million from 'million/compiler'; /** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: true, // output: "standalone", // output: "export", // webpack: ( // config, // { buildId, dev, isServer, defaultLoaders, nextRuntime, webpack } // ) => { // return config // }, images: { remotePatterns: [{ protocol: 'https', hostname: 'avatars.githubusercontent.com' }, { protocol: 'https', hostname: 'cdn-icons-png.flaticon.com' }] // unoptimized: true, }, experimental: { reactCompiler: true, forceSwcTransforms: true, }, // sassOptions: { // includePaths: [path.join(__dirname, 'src/styles')], // } }; // NOTE - Fixes compile error (https://github.com/aidenybai/million/issues/963#issuecomment-1952815924) const millionConfig = { mute: true, auto: { rsc: true }, rsc: true, }; export default million.next(MillionLint.next({ rsc: true, filter: { include: [ "**/components/*.{mtsx,mjsx,tsx,jsx}", "**/app/*.{mtsx,mjsx,tsx,jsx}", ], }, })(nextConfig), millionConfig); // export default nextConfig; Error: TypeError: error must be an instance of Error