How to convert subdomain to subdirectory using sveltekit static adapter #10412
Replies: 1 comment 1 reply
-
Maybe you are looking for this? https://kit.svelte.dev/docs/configuration#paths |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
My site is at blog.example.com and I want to work it on example.com/blog using cloudflare worker reverse proxy
Basically I want to convert anchror href from '/test' to '/blog/test' (means blog subdirectory).
I am using cloudflare worker HTMLRewriter to update anchor[href] and script[src] attribute and everything is being replaced except anchor[href]. It looks like when kit.start() method is being called it overwrites the anchor[href] to the actual conten of html
so cloudflare worker HTMLRewriter response is being overwritten by actually code.
Any one know if I am doing anything wrong or is there any workaround for this problem that I am facing?
Beta Was this translation helpful? Give feedback.
All reactions