After deployment, can't access website

My page: https://svelte-cfpage.pages.dev/ My deployment ID: (I don't know how to get it) My account ID: 80a06574599d689bb015dc39791e5f22 I don't get any errors. My main problem is that I succcesfully deployed (built) my website from a GitHub repo. After this I don't know what I should do to be able to access my website.
24 Replies
samsam
samsam11mo ago
.
QuaqSim
QuaqSim11mo ago
If you look at deployments for the Pages project in Cloudflare, does it list a deployment around the time you would expect? If so, does accessing that deployment specifically show what you expect? (URL should look something like https://a1b2c3.svelte-cfpage.pages.dev)
samsam
samsam11mo ago
Yeah, it showed that, and the URL was also something like that, but for some reason when I tried to open it, it said that it doesn't exist https://4facad8c.svelte-cfpage.pages.dev/ Oh wait..
samsam
samsam11mo ago
No description
samsam
samsam11mo ago
For some reason it only uploaded 1 file How can I fix that?
QuaqSim
QuaqSim11mo ago
Do the build directories match in your project? (Configuration in the dashboard, I think) E.g. if Svelte puts its results into build, does your Pages project use build?
samsam
samsam11mo ago
The directories match. I didn't push the built files to GitHub, I thought CF would build it. I guess that is the problem, right?
QuaqSim
QuaqSim11mo ago
Shouldn’t be, but it would need to be configured to perform the build if it isn’t already. E.g. build command might need to be something like npx svelte build (I’m pulling that command out of nowhere, I don’t know Svelte specifically)
samsam
samsam11mo ago
On my local computer I can build it with npm run build.
samsam
samsam11mo ago
This is my build settings:
No description
samsam
samsam11mo ago
GitHub
GitHub - sharkmu/svelte-cfpage
Contribute to sharkmu/svelte-cfpage development by creating an account on GitHub.
QuaqSim
QuaqSim11mo ago
Looks like there is some extra setup needed for Svelte like installing and using a different adapter: https://developers.cloudflare.com/pages/framework-guides/deploy-a-svelte-site#sveltekit-cloudflare-configuration
Deploy a Svelte site · Cloudflare Pages docs
Svelte is an increasingly popular, open-source framework for building user interfaces and web applications. Unlike most frameworks, Svelte is …
QuaqSim
QuaqSim11mo ago
Though looking at that again, I wonder if /dist should be /cfpage/dist, i.e. if it’s building inside there rather than beside it.
samsam
samsam11mo ago
🤔 Interesting
samsam
samsam11mo ago
No description
Want results from more Discord servers?
Add your server