M!NDBYTE2y ago

Need help making fresh, rutt and preact base path aware

I'm currently trying to make fresh base path aware. I already patched rutt to work with base paths. It currently works pretty okay. Now I need help with preact as I have no experience with preact. Is there a way to tell preact to add a base path to e.g. all relative links? E.g.: <img src="/logo.svg" ... from the jsx file should be 'compiled' to <img src="/my_base_path/logo.svg" .... Or do we need to do this ourselves by adding a ${BASE_PATH} before all links? A mono-repo for this mess: https://github.com/wille-io/deno-fresh-rutt-baseurl
GitHub - wille-io/deno-fresh-rutt-baseurl
Contribute to wille-io/deno-fresh-rutt-baseurl development by creating an account on GitHub.
0 Replies
No replies yetBe the first to reply to this messageJoin