S
Solara13mo ago
Bri

ssg static assets

I'm enjoying Solara so far - my saved site with solara ssg mysite.py or with solara run mystie.py --ssg saves one page index.html, all good for a simple example, but it is missing the css, js, and other resources. How could I best include those?
3 Replies
MaartenBreddels
MaartenBreddels12mo ago
Why do you need that? The idea is that you still serve it via the solara server, which will provide those assets. Once that is loaded, and the connection to the server is made, and you app is being run, the page will be hydrated. The static html pages are not meant to be used on its own.
Bri
BriOP12mo ago
I'd rather do without it - in a large corporate environment where it takes a yea rto get a web server it can be helpful to save html on a file server if the universe of pages is known in advance. There are flask, frozen flask, and bokeh for that, would rather limit number of tools to solara. The right answer is just do things well I believe. Maybe I'll stick to the ideal.
Matt
Matt12mo ago
I'm in the same boat at Bri. I'd like to host the code from an AWS S3 bucket (static website). Is that not possible with SSG?
Want results from more Discord servers?
Add your server