disable frontend in production

This commit is contained in:
mpostma
2020-11-23 13:13:10 +01:00
parent d6c76b02e3
commit d3e7e18b7d
2 changed files with 12 additions and 5 deletions

View File

@ -80,8 +80,9 @@ async fn main() -> Result<(), MainError> {
print_launch_resume(&opt, &data);
let enable_frontend = opt.env != "production";
let http_server = HttpServer::new(move || {
create_app(&data)
create_app(&data, enable_frontend)
.wrap(
Cors::new()
.send_wildcard()