-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Working with CAPACITOR JS #3
Comments
Are you able to isolate this issue to something with |
I believe because it is expecting to have the page 65d2cd8d..html The use case is simply export all static html site into a webview that capacitor has to show it as an "app" for android/ios. All it needs is the static html for it to work. I can do it with Sveltekit Static Export, but can't seem to get it with Next.JS |
Are you using the |
App Router... using useDynamicParams ofc. |
Ah I see. So this seems like a capacitor specific issue that is incompatible with our approach. We generate a "fallback" page and fetch data client side. If capacitor enforces that all pages need to exist, you'll need to either
I'd recommend option 2 if possible, because in a webview pretty urls aren't as important. |
going to close this issue for now, as we likely won't be able to support capacitor with our current approach--please lmk if you end up getting this resolved |
As far as i know Sveltekit exports only 1 index.html and the rest of routes and pages are with javascript. So its basicly a SPA. I wonder if its possible to make a version that could change the hrefs to the fallback page so i wont get like the 404 error and fetched data thro the fallback (client side) |
Got it working, however when using cpaacitor js where we use the exported "out" directory into webview, i ran into this error in xcode
[error] - Failed to fetch RSC payload for capacitor://localhost/admin/regions/65d2cd8d281b553da132e9be.
The text was updated successfully, but these errors were encountered: