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
3 Replies
apollo79
apollo7910mo ago
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
marcusbuffett
marcusbuffett10mo ago
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
apollo79
apollo7910mo ago
Hm, I have no idea where that error comes from, sry