Enable adapter-static to connect with adapter-node backend by simply supplying URL #12161
Unanswered
bluepuma77
asked this question in
Q&A
Replies: 2 comments 3 replies
-
@Rich-Harris, @benmccann, @dummdidumm, @Conduitry: |
Beta Was this translation helpful? Give feedback.
0 replies
-
Please don't ping maintainers. I'm really not sure what this is asking for. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the problem
I would like to create a mobile app from of my SvelteKit web application. CapacitorJS enables this, it can package a static SvelteKit app into a mobile application (Ionic CapacitorJS blog, svelte-capacitor-recipe, sveltekit-capacitor-starter, capkit), available on an App Store.
My current understanding is that an adapter-static build does not include the automatic fetch functionality that a regular adapter-node SvelteKit web app has included. So for every SvelteKit page I have to manually generate the fetch logic.
Describe the proposed solution
It would be great if adapter-static could be used to build a static SvelteKit web application, that can still connect to a regular SvelteKit (adapter-node) backend by simply supplying the backend URL during build or runtime.
Further enhancement would be to modify this fetch functionality centrally to supply a http header like access token.
Alternatives considered
Manually generate fetch logic for every page implemented.
Importance
would make my life easier
Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions