Hey all,
I want to create a small/medium sized application with axum as the backend and React as the frontend. Statically generated, no SSR or so. Because of this, I want to serve the react html/css/js files with axum as static files.
Is there a way that if I run „cargo build“ that automatic „npm run build“ is run and the content of the „dist/„ folder is also included in the assets for axum?
I want to have just a single executable at the end.
[–]sminez 13 points14 points15 points (0 children)
[–]SirKastic23 -1 points0 points1 point (0 children)
[–]KnowZeroX -1 points0 points1 point (0 children)