Next.js Discord

Discord Forum

After hosting nextjs project in cloudflare worker i get this page thing idk why its very new to me

Unanswered
Cinnamon posted this in #help-forum
Open in Discord
CinnamonOP
so i deployed my nextjs project to cloudflare workers and im getting this thing on dashboard its not the env problem as it sometimes works and i see the dashboard and the details etc but after clicking on links it shows this and then only landing page works idk what is this or how to recitify this

36 Replies

well i dont see shit in the logs if u want i can send u the json file
u can check for urself every request shows 200
@Cinnamon u again bro nice seeing u haha
haha yea 🙂
@Cinnamon well i dont see shit in the logs if u want i can send u the json file
yea, please share the logs or screenshot of the logs here. Please watch out to not dox yourself and hide secret data (as well as PII data)
Please share the logs or screenshot of the logs here. Like that other people are able to help as well
CinnamonOP
sometimes it works when i refresh it but then after doing to different links it does that shi again
@Cinnamon Click to see attachment
thanks for sharing! I just checked out the page myself and didnt had any issues. Is the issue still persistent?
@B33fb0n3 thanks for sharing! I just checked out the page myself and didnt had any issues. Is the issue still persistent?
CinnamonOP
well it only gives me that page in /dashboard the landing page works perfectly fine, but yeah the issue is still there i came up with this setup will let u know if it works out
@Cinnamon well it only gives me that page in /dashboard the landing page works perfectly fine, but yeah the issue is still there i came up with this setup will let u know if it works out
hmmm works fine for me as well 👀 ([using this](https://10xbacklink.abhik-works08.workers.dev/dashboard))

But yea, lmk if it works and if so: let us know your fix, so other people can learn from it (especially me lol)
@B33fb0n3 hmmm works fine for me as well 👀 ([using this](https://10xbacklink.abhik-works08.workers.dev/dashboard)) But yea, lmk if it works and if so: let *us* know your fix, so other people can learn from it (especially me lol)
CinnamonOP
sure sure, also u said u went thorugh the site and all so u made an acc or something as dashboard page wont be accessible without a google acc
Sun bear
hello after you clear cookie and cache?
@Sun bear hello after you clear cookie and cache?
CinnamonOP
u mean clearing the sites cookie and cache?
@B33fb0n3 I tried visiting the dashboard and was redirected then
CinnamonOP
might have fixed it lol
just had to install

pnpm add @opennextjs/cloudflare
pnpm add -D wrangler

these packages and setup the wrangler config and all that stuff for the cloudflare workers to work or something idk how anything works but it works good now lol
havnt got that page again in the last 20 mins
@B33fb0n3 are you sure thats the solution? I once tried that and had both installed and still got the issue
CinnamonOP
i also had to like do the command to migrate the thing so it did the setup for me basically then redoloyed it and it gave me a wrangler.jsonc for the public env and then it worked
@Cinnamon i also had to like do the command to migrate the thing so it did the setup for me basically then redoloyed it and it gave me a wrangler.jsonc for the public env and then it worked
might not be proper place to ask but id like to know how was the deploying process for u as im willing to host an app too on cf
just have to connect ur github with the workers and it will pull the project
just like in vercel
but u will have to setup envs twice 1 for production and 1 for build thats the only thing i noticed
this was my first time using cf as well i kinda like it
@B33fb0n3 what kind of migrate?
CinnamonOP
this command "pnpm exec opennextjs-cloudflare migrate" this idk what it does but it build me the config file and everything
and yeah 12 hr in its working lol
wow ok, cool! So the solution was (correct me if I am wrong):

Install packages:
pnpm add @opennextjs/cloudflare
pnpm add -D wrangler

Then run the migration stuff:
pnpm exec opennextjs-cloudflare migrate

And then connect the GitHub project normally via Cloudflare dashboard and hit deploy and everything works like expected
Polar bear
I've been getting this same error page whenever I rebuild my app. Then after 1 refresh, it fixes itself.

I'll also try the fixes above. Thank you!