Repository navigation
v1.9.0
- Feature: Lifecycle hooks via
setup({ hooks = { on_start = fn, on_stop = fn } }).on_start(url)runs after the preview is ready and receives the full URL (with the auth token included), useful whenopen_browser = false.on_stop()runs after the server stops and cleanup completes. Both default tonil. (#24, thanks @gogongxt)