Next JS deployed successfully but turn into 404 in live site

What is the name of the domain?

sequence-bke.pages.dev

What is the error message?

Found wrangler.toml file. Reading build configuration…A wrangler.toml file was found but it does not appear to be valid. Did you mean to use wrangler.toml to configure Pages? If so, then make sure the file is valid and contains the pages_build_output_dir property. Skipping file and continuing.

What is the issue you’re encountering

I deployed my NextJS website but it could not be accessed and turned into 404 page.

What are the steps to reproduce the issue?

I followed this guide: Next.js · Cloudflare Workers docs

Screenshot of the error

wrangler.toml

main = “.open-next/worker.js”
name = “sequence”

compatibility_date = “2024-09-23”
compatibility_flags = [“nodejs_compat”]
assets = { directory = “.open-next/assets”, binding = “ASSETS” }

Where’s your index.html? In build or output folder? Does it exist and was it generated?

From the screenshot, your build output is .next, is it there then?

This topic was automatically closed after 15 days. New replies are no longer allowed.