Open protimroy opened 1 week ago
I feel like I've seen that error before myself too, but I'm not able to reliably reproduce it. It comes from the python http server anyway, so I'm not sure if there's much to be done around that.
I've been using Goku's built-in static server for this since v0.0.4
. I need to update the readme. It uses zap, which works on Mac, Linux, or under WSL on Windows. Maybe you can try using that command as your local preview static server.
If you're compiling goku locally, you can run zig build
to make the server binary as well:
# in goku dir
zig build
./zig-out/bin/goku ../path/to/site -o ../path/to/site/build
./zig-out/bin/serve ../path/to/site/build
Alternatively, if you're integrating with build.zig, it might be more pleasant to add a serve
step to your build.zig as is described in the v0.0.4 release notes, so then you can do something like the following to get a local preview server going:
# in your site dir
zig build site
zig build serve
Every so often I get a broken pipe error. See pic: