Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Nov 29, 2024
1 parent 611e43e commit 3729ef6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/next-core/src/next_font/local/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,14 @@ impl BeforeResolvePlugin for NextFontLocalResolvePlugin {
let font_fallbacks = get_font_fallbacks(lookup_path, options_vc);
let properties = get_font_css_properties(options_vc, font_fallbacks).await;

let lookup_path = lookup_path.to_resolved().await?;
if let Err(e) = &properties {
for source_error in e.chain() {
if let Some(FontError::FontFileNotFound(font_path)) =
source_error.downcast_ref::<FontError>()
{
FontResolvingIssue {
origin_path: lookup_path.to_resolved().await?,
origin_path: lookup_path,
font_path: ResolvedVc::cell(font_path.clone()),
}
.cell()
Expand Down

0 comments on commit 3729ef6

Please sign in to comment.