Custom Domain Redirect to Edge Function Returns 404 - Works on .supabase.co but not on Custom Domain #37468
Unanswered
valueunlimited007
asked this question in
Questions
Replies: 1 comment
-
|
Where have you seen it documented you can move functions from Is there a document on [[redirects]] you are using? I can't find anything on this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Custom Domain Redirect to Edge Function Returns 404
Problem Summary
I have a critical SEO issue where
/sitemap.xmlreturns 404 on my custom domainfiskar.se, but the same Edge Function works perfectly when accessed directly via the Supabase URL.Supabase Plan: Pro
Project ID: jbfxcpqqcjisgbsapeed
Custom Domain: fiskar.se (verified and working for other routes)
Current Setup
Edge Function
sitemapcontent-type: application/xmlConfig.toml Redirect
Problem
Testing Results
Working (Direct Edge Function):
curl -I https://jbfxcpqqcjisgbsapeed.supabase.co/functions/v1/sitemap # Returns: HTTP/1.1 200 OK, content-type: application/xmlNot Working (Custom Domain):
curl -I https://fiskar.se/sitemap.xml # Returns: HTTP/1.1 404 Not FoundTroubleshooting Steps Taken
Questions
/sitemap.xmlfor a custom domain (NOT .supabase.co)?config.tomlredirects not applying to custom domains?Impact
This is blocking Google Search Console sitemap submission and affecting SEO indexing for our production site.
Additional Info
Has anyone experienced similar issues with custom domain redirects to Edge Functions? Any workarounds or solutions would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions