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
{{ message }}
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.
Thanks for starting pbscript. It's a great companion to pocketbase.
My default strategy with pocketbase is to use SvelteKit frontend, and make it as static (JAMStack) as possible. But sometimes dynamic code at runtime is still needed. For example:
When you want to have a runtime API endpoint to generate runtime results.
Or when you need runtime SSR of a page (imagine a site with local business listings of 50,000 cities; not practical to prerender them all).
pbscript (I think) would be useful in scenario #1, but perhaps not in scenario #2? Technically, SSR is still just script execution, but maybe I don't know enough about pbscript to see how it would work.
Eventually, it would be nice to have a SvelteKit adapter that generates JS code that simply runs in pbscript.
PS: I put this in as an issue, since "discussions" feature is not turned on yet.
The text was updated successfully, but these errors were encountered:
Pocketbase exposes a hook API written and Go. Normally, other customizations must be written in Go and re-compiled. PBScript allows you to write hook handlers in Typescript or JavaScript instead of Go.
SvelteKit would do all the SSR handling. If you were to use the PocketBase js sdk client during an SSR request, that should work because the client will work in a node environment.
Thanks for starting
pbscript
. It's a great companion to pocketbase.My default strategy with pocketbase is to use SvelteKit frontend, and make it as static (JAMStack) as possible. But sometimes dynamic code at runtime is still needed. For example:
pbscript
(I think) would be useful in scenario #1, but perhaps not in scenario #2? Technically, SSR is still just script execution, but maybe I don't know enough about pbscript to see how it would work.Eventually, it would be nice to have a SvelteKit adapter that generates JS code that simply runs in pbscript.
PS: I put this in as an issue, since "discussions" feature is not turned on yet.
The text was updated successfully, but these errors were encountered: