broken route prefix

This commit is contained in:
realaravinth
2021-04-12 19:03:55 +05:30
parent 420ff75817
commit de6ceb1b3f
9 changed files with 141 additions and 74 deletions

View File

@@ -15,9 +15,13 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
use cache_buster::BusterBuilder;
use std::process::Command;
use cache_buster::BusterBuilder;
#[path = "./src/settings.rs"]
mod settings;
fn main() {
// note: add error checking yourself.
let output = Command::new("git")
@@ -37,6 +41,7 @@ fn main() {
}
fn cache_bust() {
let settings = settings::Settings::new().unwrap();
let types = vec![
mime::IMAGE_PNG,
mime::IMAGE_SVG,
@@ -49,11 +54,12 @@ fn cache_bust() {
let config = BusterBuilder::default()
.source("./static")
.result("./prod")
.prefix(settings.server.url_prefix)
.mime_types(types)
.copy(true)
.follow_links(true)
.build()
.unwrap();
config.process().unwrap().to_env();
config.process().unwrap();
}