How can I set the views directory with Pages?

I created a repo and cloned it but the directory in the repo has a Views folder with the homepage in it. I am unsure how to set a startpage within a folder
21 Replies
Chaika
Chaika3mo ago
Under Settings -> Builds & Deployments -> Build Configurations you can change the output directory there ps. for the future there is #pages-help for pages issues
MesaGorny
MesaGorny3mo ago
This is what i tried but i still get a blank screen...
No description
Chaika
Chaika3mo ago
it shouldn't be directly to the file, should be just to Views, and be careful about the case too, Pages is case sensitive Pages will automatically serve index.html if requesting a folder: https://developers.cloudflare.com/pages/configuration/serving-pages/
MesaGorny
MesaGorny3mo ago
oh i think i found my mistake thank you I changed the build output directory to include the other folders that include the startpage but it still shows a blank screen it's now /Views/Desktop/User/
Chaika
Chaika3mo ago
what do you see under uploaded files?
MesaGorny
MesaGorny3mo ago
No description
MesaGorny
MesaGorny3mo ago
the files have been cloned properly from github
Chaika
Chaika3mo ago
so if you go to your pages.devand the path /Views/Desktop/User/ do you see anything?
MesaGorny
MesaGorny3mo ago
no
Chaika
Chaika3mo ago
weird, that's from the latest build, that file uploaded list? Can you share the pages.dev url?
MesaGorny
MesaGorny3mo ago
aiopie-xyz.pages.dev it also works with aiopie.co or www.aiopie.xyz
Chaika
Chaika3mo ago
https://aiopie-xyz.pages.dev/Views/Desktop/User/ that works for me is that what you want show on the front page on /?
MesaGorny
MesaGorny3mo ago
yes. is there a way to route it so when you type in aiopie.xyz it shows that. Im assuming theres a cname that Im missing
Chaika
Chaika3mo ago
You want just .xyz to show that, or all of them?
MesaGorny
MesaGorny3mo ago
all as in all custom domains?
Chaika
Chaika3mo ago
yea
MesaGorny
MesaGorny3mo ago
yes
Chaika
Chaika3mo ago
then it's just a matter of changing that output directory what do you have it set to right now?
MesaGorny
MesaGorny3mo ago
/Views/Desktop/User/
Chaika
Chaika3mo ago
do you have that leading slash / in the actual value? Shouldn't be needed once you change that output directory you need to rerun the build as well
MesaGorny
MesaGorny3mo ago
thank you for your help again
Want results from more Discord servers?
Add your server
More Posts