Pages.dev domain isn't working, but individual build links work
Hello, I am running into a problem where the pages.dev domain gives the "Nothing is here yet" error.
The domain is called https://mixstory.pages.dev.
Bizarrely, https://main.mixstory.pages.dev does work, as do the specific deployments such as https://6ebe3fb0.mixstory.pages.dev/
Can you help figure out what's going on, please?
Thanks !
8 Replies
The production branch of your project isn't main, in the dashboard it should highlight that as a preview deployment
If it's a Git based project you should be able to change that under Settings -> Builds & Deployments -> Production branch
You're right, thanks !
Unfortunately I can't have the "Builds & Deployments" options in the settings.
Sounds like it's a direct upload project then and not using the git integration?
That's right
Should I just delete the project and deploy it again ?
Git based projects are generally recommended, better integration and they still let you direct upload via wrangler
otherwise you can change the production branch of a direct upload project via the api https://discord.com/channels/595317990191398933/789155108529111069/1010001163820728432, kind of a hassle
I know the Pages team is aware of that limitation and hopefully one day it'll be in the UI for direct upload projects too
Ok thanks !
How do you create a git based project ? Right now I'm creating projects with
wrangler pages project create
and I don't remember it asking what kind of project it isFrom the dashboard, Workers & Pages -> Create Application -> Pages -> Connect Git
Magic link: https://dash.cloudflare.com/?to=/:account/workers-and-pages/create/pages
You'd need a Git repo created for it as well, but Pages has integrated ci/cd and you get 500 builds per month for free, it'll build your website every time you commit something (configurable)
Yea all the ones created from wrangler are just going to be direct upload
Ok I get it. Thanks for the explanations !