I typically run the following command to watch for any front-end source changes and rebuild the assets.
cd inspector && pnpm watch
The built assets will be under inspector/dist
directory. The asset files will be picked up in the inspector.rs
module via rust-embed and served at /_inspector/dist
path prefix.
I typically run the following command to rebuild on changes.
RUST_BACKTRACE=1 cargo watch -c -x 'run -- -c ~/.config/rss-funnel/funnel.yaml server' -w ~/.config/rss-funnel/funnel.yaml -w src/ -w Cargo.toml
Note that I didn’t watch the inspector/dist
directory because in debug mode the assets are served from the file system.
- build the inspector front-end:
cd inspector && pnpm build
- build the rust project:
cargo build --release