mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-26 08:11:04 +00:00
disable frontend in production
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user