#Cloudflare Pages - page can't be found
1 messages · Page 1 of 1 (latest)
Unfortunately this is our setup 😦
Do you have any idea on this? Thank you
@dusty dagger @glass fossil
This is my GHA to deploy to Cloudflare Pages https://github.com/sergiodxa/sergiodxa.com/blob/main/.github/workflows/deploy.yml
The code behind sergiodxa.com. Contribute to sergiodxa/sergiodxa.com development by creating an account on GitHub.
@dusty dagger is this using bun create-remix@latest?
I do use Bun to install my dependencies, but I didn't used bun create-remi@latest to start that app, the repo exists from before Bun was released
@dusty dagger I’ve used create-remix@latest. What did you change in this code or did something that would make this work when deployed to cloudflare. Did you also make changes in the cloudflare dashboard?
I did a lot of changes to my app, on the CF dashboard I configured to don't autodeploy, so I could do it with the GHA, aside of that no other change should affect the deploy GHA I think
@dusty dagger Its weird cause I'm getting like this
are you sure the URL is correct?
@dusty dagger Yes. Maybe I'll try to make the repo public and share the code to you?
@dusty dagger
I can create a new repo.
Is this ok to follow? or I should follow the create-remix@latest
https://developers.cloudflare.com/pages/framework-guides/deploy-a-remix-site/
-> npm create cloudflare@latest my-remix-app -- --framework=remix
that didn't existed when I created my repo, but I recommend you to follow it since it's the offical docs from CF
@dusty dagger actually managed to deploy remix with just remix and cloudflare using this npm create cloudflare@latest my-remix-app -- --framework=remix
The issue is if I put it in turborepo, webpage isn't found when I deploy it.
Oh, no idea then, i don’t use turborepo, I doubt it works outside Vercel
It actually does. I’ve deployed storybook with it. Remix with cloudflare doesn’t
maybe cloudflare is looking in the wrong place for your app?
you might have set it to look for a Remix app but then it's in a different build directory with turborepo?
@glass fossil Hey Jacob. I’ll paste the repo here. I’ll make it public. Hold on
Remix with Cloudflare works without issue, I use it, and you also said it worked for a new app
The problem started with turborepo, right?
It seems clear that the issue is with turborepo, I imagine you can’t use Cloudflare auto deploy and instead you need to do the build and deploy yourself, and configure it to work with turborepo
in your cloudflare pages config, is there a place where you set the build directory?
on cloudflare's website
I don't think so?
I think we are building it in the github actions then just upload/deploy it on cloudflare.
you have settings here
I don't have any Pages at the moment
but there was an option where I said "this is a Remix app" and it pre-filled the /build directory and the /public/build
those are the things I think you need to change to make it see your turborepo app
Hmm can't seem to find it in the pages settings
@glass fossil Would be it fine to clone my repo and try to deploy it on your own? But still using github actions
click public-web-app and then there should be a settings something somewhere
hmm I'd expect a Build & Deployment section on the left https://developers.cloudflare.com/pages/platform/build-configuration/
Sorry but I can't seem to find it.
I think that would show up only if you connect to git and not by github actions?
I'm getting this too, I believe this is because you are using @remix-run/node and not @remix-run/cloudflare