jeff
03/19/2024, 4:28 PMjeff
03/19/2024, 4:28 PMColumn
/ Row
/ Box
have saved me so much time it isn't even funny. Do you have a patreon or github sponsor or anything set up? I'd love to buy you some coffee/beer π
2. This article was super helpful, very much appreciated
3. For a while my websockets were refusing to connect. (I eventually realized it was because I had accidentally undone the CORS change in my .yaml). I don't know if there's any way to get a more detailed error message than "failed to connect", but that would have been useful.
4. "Static site export" is a very cool feature. However, my particular use case is internal-only, so I don't care about SEO. Is there a way to opt out of it? I'd rather reduce the build time/complexity (e.g. not have to install playwright). Not super important, just curious
5. If your server crashes on startup (in my case due to an env variable that was missing but only in Docker), kobweb export
will (understandably) not be able to export your static .htmls. However, it will also complete successfully, which means instead of an error you get what looks like a green build, but that says "error, no /site/ found" when you try to run it. Even worse is that unless you specify otherwise, Docker only shows you the last few lines of output when building, so you'll never see the error. Happy to file a github issue or provide a repro, tell me what's useful.David Herman
03/19/2024, 4:32 PMDavid Herman
03/19/2024, 4:34 PMDavid Herman
03/19/2024, 4:34 PMDavid Herman
03/19/2024, 4:35 PMDavid Herman
03/19/2024, 4:35 PMDavid Herman
03/19/2024, 4:37 PMjeff
03/19/2024, 4:40 PMblablah
BUILD FAILED (because your server crashed)
blahblah, trying to export, but can't
BUILD SUCCEEDED (from the overall kobweb export)
jeff
03/19/2024, 4:40 PMDavid Herman
03/19/2024, 4:41 PMjeff
03/19/2024, 4:41 PMDavid Herman
03/19/2024, 4:41 PMjeff
03/19/2024, 4:42 PMDavid Herman
03/19/2024, 4:48 PMjeff
03/19/2024, 5:07 PMjeff
03/19/2024, 5:07 PMDavid Herman
03/20/2024, 5:19 AMkobweb {
app {
export {
// We don't care about SEO for this site, no export snapshots needed!
filter.set { false }
}
}
}
and it worked. The export process gives you a warning but you can ignore it because you're doing it intentionally here.