Page address for GitHub Repository not working
Hey everyone, I've created a Cloudflare Page using my Github Repository and was able to
build
successfully, however, when I go to the link given for the project, saigon.pages.dev
it does not work.10 Replies
What do you see under assets uploaded for that deployment? Magic link: https://dash.cloudflare.com/?to=/:account/pages/view/:pages-project/:pages-deployment/files
hmm, somehow, the first time around my email didn't verify, maybe that was the issue?
still not working
wait a minute, within
src
it only shows,
does that mean all my project (written in Svelte/SvelteKit) components and the pages did not load?
The two things I changed during the project setup process were,
1) instead of npm run build
I changed it to pnpm run build
2) I changed the output directory from .svelte-kit/cloudflare
to .svelte-kit
( as that's the project directory name within my actual project, maybe that's the issue?hmm, give me a moment please, I missed this whole page, https://kit.svelte.dev/docs/adapter-cloudflare
SvelteKit docs
Cloudflare Pages • SvelteKit documentation
If you want SSR then yea you'd want to use that adapter, or you could use the static adapter and that output.
It looks like the output directory didn't stick, it just uploaded the root looks like: https://saigon.pages.dev/tsconfig.json
The output dir depends on which adapter you want to go with
@Chaika It works now
Thank you for the help on that. I have another question but I'll open a new question thread.
Actually @Chaika honestly, my next question I don't even know how to title it... I guess I'll ask here...
This Github repository is for a website and I added Cloudflares DNS to the Domains Registrar (Google Domains) but, within the Cloudflare DNS settings, I see this,
fast.getbento.com
is who the website owner was with before
something tells me that should be removed or edited to saigon.pages.dev
- which I am going to do but please let me know if I am missing something
it takes the domain offline, maybe that's just a delay thing...hmm
In the Pages Project, you can click "Custom Domains" tab and add it there
just manually modifying the dns record won't work
I believe I did that, double checking
If you wanted the www to work, you'd want to add it to there as well
Search Engines would see it as duplicate content though, you usually want to pick one you want to use (www or apex), and have the other redirect it. example of making that redirect: https://developers.cloudflare.com/pages/how-to/www-redirect/
Redirecting www to domain apex · Cloudflare Pages docs
In this guide, you will learn how to redirect the www subdomain to your apex domain (example.com). This is a common question and can be achieved by …
okay, I've added that too, waiting for it to verify/activate and I will read that
Thank you
OMG
it works
feeling happy like a kid
I owe you one, dunno how but thank you again!
❤️