mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
serve static site
This commit is contained in:
parent
bb79695e44
commit
6bcf20c70e
7 changed files with 114 additions and 36 deletions
|
@ -6,6 +6,7 @@ use std::path::PathBuf;
|
|||
use anyhow::Context;
|
||||
use sha1::{Sha1, Digest};
|
||||
use reqwest::blocking::get;
|
||||
use actix_web_static_files::resource_dir;
|
||||
|
||||
use vergen::{generate_cargo_keys, ConstantsFlags};
|
||||
use cargo_toml::Manifest;
|
||||
|
@ -54,5 +55,6 @@ fn setup_mini_dashboard() -> anyhow::Result<()> {
|
|||
let cursor = Cursor::new(&dashboard_assets_bytes);
|
||||
let mut zip = zip::read::ZipArchive::new(cursor)?;
|
||||
zip.extract(&dashboard_dir)?;
|
||||
resource_dir(&dashboard_dir).build()?;
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue