Can Solid Start export a build folder that would be compatible with Capacitor?
Capacitor requires a web directory with index.html at the root, I'm wondering how much work it would be to get my Solid Start app to output something like that. Would I have to create a separate vite config to compile the project as a regular Solid project?
https://capacitorjs.com/docs/getting-started#add-capacitor-to-your-web-app
Installing Capacitor | Capacitor Documentation
Installing Capacitor
3 Replies
Did you try adding
{ ssr: false }
to the solid-start vite plugin? I think a build with that option outputs a folder with an index.html
Got so excited when I saw this, but even if I include that, when I run & preview, I get this error:
$ROUTE_LAYOUTS is not defined
, which is the same as when I run without ssr: false
Hm, I have no idea where that error comes from, sry