mirror of
https://github.com/DioxusLabs/dioxus
synced 2025-02-17 06:08:26 +00:00
fix finding files with a custom map_path
This commit is contained in:
parent
d637ef187c
commit
715289c3de
1 changed files with 1 additions and 4 deletions
|
@ -190,10 +190,7 @@ impl IncrementalRenderer {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn find_file(&self, route: &str) -> Option<ValidCachedPath> {
|
fn find_file(&self, route: &str) -> Option<ValidCachedPath> {
|
||||||
let mut file_path = self.static_dir.clone();
|
let mut file_path = (self.map_path)(route);
|
||||||
for segment in route.split('/') {
|
|
||||||
file_path.push(segment);
|
|
||||||
}
|
|
||||||
if let Some(deadline) = self.invalidate_after {
|
if let Some(deadline) = self.invalidate_after {
|
||||||
// find the first file that matches the route and is a html file
|
// find the first file that matches the route and is a html file
|
||||||
file_path.push("index");
|
file_path.push("index");
|
||||||
|
|
Loading…
Add table
Reference in a new issue