File Size in Pages

Hello All, I'm trying to host my portfolio website on pages but it's giving me 01:13:55.438 ✘ [ERROR] Error: Pages only supports files up to 25 MiB in size 01:13:55.438
01:13:55.438 cache/webpack/client-production/0.pack is 206 MiB in size This error after production build is successful. Can you please tell me
5 Replies
Erisa
Erisaβ€’5mo ago
The cache folder shouldn't be included in the build output ideally, either delete it after the build command or change the output directory to one more specific that doesn't include the cache
Aravinda
AravindaOPβ€’5mo ago
Hey, Thanks. Yeah, I have deleted and uploaded it. The site has been deployed but I'm still getting an error as site not found once I click the URL. Any idea how to resolve this?
Erisa
Erisaβ€’5mo ago
that usually means the build output directory was set incorrectly, you can check under "assets uploaded" on the deployment to see there should be an index.html in the root of it
Aravinda
AravindaOPβ€’5mo ago
No there isn't just checked
Barath SR
Barath SRβ€’3mo ago
Please assure the "next.config.js" file that include this configurations in itπŸ‘‡: /** @type {import('next').NextConfig} */ const path = require('path'); const nextConfig = { output: 'export', reactStrictMode: false, sassOptions: { includePaths: [path.join(__dirname, 'css')], }, trailingSlash: true, devIndicators: { buildActivity: false, }, eslint: { ignoreDuringBuilds: false, }, }; module.exports = nextConfig; Then refer this : https://developers.cloudflare.com/pages/framework-guides/nextjs/deploy-a-static-nextjs-site/#deploy-your-application-to-cloudflare-pages document for setup the build. You will catch up your solution.
Cloudflare Docs
Static site | Cloudflare Pages docs
Deploy a static site built using Next.js to Cloudflare Pages
Want results from more Discord servers?
Add your server