astonishing-pencil-30311
11/18/2022, 9:05 AMconst FRONT_PUBLIC: &str = "./frontend/public";
...
Router::new() .fallback(get_service(ServeDir::new(FRONT_PUBLIC)).handle_error(handle_error))stocky-kangaroo-53672
11/18/2022, 9:09 AMastonishing-pencil-30311
11/18/2022, 9:27 AMstocky-kangaroo-53672
11/21/2022, 6:52 AM./dist folder (since the folder isn't copied too) during runtime. It works locally, since we don't copy the compiled file for local runs and therefore the ./dist folder is in the expected place
So the entire serving of any folder works as expected. It's finding the location of the folder during runtime that is the problem in prod.stocky-kangaroo-53672
11/21/2022, 6:52 AM/templates folder being used during compile time?astonishing-pencil-30311
11/21/2022, 7:48 AMstocky-kangaroo-53672
11/21/2022, 7:52 AM