Pages source files fetched from wrong location #23849
-
Hey guys, when I serve my website without Custom Domain everything works fine. When I add a custom domain the network requests for the source files go to that website, while the files are still hostet on github? The page remains empty. CNAME file contains the custom domain name. DNS points to github ip adress (185.199.108.153) using A Record. My hoster only provides the option of setting 1 A-Record, could this be a problem or are multiple A-Records just used as fallback? Appreciate the help :slight_smile: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hello @Ka-Repo and welcome here, Setting a custom domain on your Pages site usually also changes the routing logic for your site. In your specific example you went from You will want to update your site so resources are fetched at the root ( I hope it helps, |
Beta Was this translation helpful? Give feedback.
-
Hi @yoannchaudet, EDIT: You saved my day. Had some prefix in my deploy command in my package.json. |
Beta Was this translation helpful? Give feedback.
Hello @Ka-Repo and welcome here,
Setting a custom domain on your Pages site usually also changes the routing logic for your site.
In your specific example you went from
https://ka-repo.github.io/metaplex
tohttps://example.com
.You will want to update your site so resources are fetched at the root (
/
) of your site instead of under/metaplex
.I hope it helps,