Integrating live reload for Workers Assets on Mkdocs-based site

I migrated my Mkdocs-based site from Pages to Workers Assets and I am figuring out if I have correctly integrated mkdocs build command (I use pipenv's scripts config on that) for use in wrangler dev --live-reload. Does this work or do you have any possible workarounds on forcing a build if stuck? My config in nutshell: https://gitlab.com/andreijiroh-dev/website/-/blob/main/wrangler.jsonc?ref_type=heads (Pipfile at https://gitlab.com/andreijiroh-dev/website/-/blob/main/Pipfile) disclaimer: I am on NixOS so I have a devenv.nix config on the repo if you need to reproduce.
GitLab
wrangler.jsonc · main · Andrei Jiroh Lair / Personal website · G...
Built with Material for Mkdocs, deployed at Cloudflare Workers (previously Pages).
GitLab
Files · main · Andrei Jiroh Lair / Personal website · GitLab
Built with Material for Mkdocs, deployed at Cloudflare Workers (previously Pages).
1 Reply
Andrei Jiroh
Andrei JirohOP6mo ago
The problem is that I have to quit the dev server and rerun wrangler dev but it does the build twice after that. Logs for context: https://gist.github.com/ajhalili2006/7024de21ec2461059350dd4cfe066816
Gist
build.log
GitHub Gist: instantly share code, notes, and snippets.

Did you find this page helpful?