TheOneThatPlaysTooMuch
Explore posts from serversProblem with my api route
Hi! I actually found out why it doesn't work but I still don't know why its like this: when I fetch a full url like "https://google.com" its fine, but when I fetch a relative url like "/api/login" called from a server component, it says it is an invalid url, but when I call it from an island component, its fine.
4 replies
KPCKevin Powell - Community
•Created by TheOneThatPlaysTooMuch on 10/25/2024 in #front-end
Astro components
For example take this hypothetical icon component:
is there a way to make that work?
4 replies