You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now if you want to extend pocketbase as a framework without Go via JS then there are some limitations when it comes to routing. Curious if it would be possible to include an API similar to static files that can use a wild card to proxy requests too.
The downside of this is I believe it does not support auto updates ./pocketbase update and requires GO knowledge to implement.
The text was updated successfully, but these errors were encountered:
rodydavis
changed the title
[Feature Request] - Ability to proxy requests to another endpoint
Feature Request: Ability to proxy requests to another endpoint
Jan 31, 2024
Problem
Right now if you want to extend pocketbase as a framework without Go via JS then there are some limitations when it comes to routing. Curious if it would be possible to include an API similar to static files that can use a wild card to proxy requests too.
Possible Solution
This would need to support more than just GET. For example the API could be:
Here is an example that works if you compile with GO:
I also wrote a blog post on how I am doing this with Astro:
https://rodydavis.com/posts/astro-ssr-pocketbase-single-server
The downside of this is I believe it does not support auto updates
./pocketbase update
and requires GO knowledge to implement.The text was updated successfully, but these errors were encountered: