mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-13 11:05:40 +00:00
broken route prefix
This commit is contained in:
10
build.rs
10
build.rs
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user