fix: Correct dynamic import paths in fallback function
- Use path aliases instead of relative paths - Fixes module resolution errors when importing from other files - Ensures fallback to Fontshare API works correctly
This commit is contained in:
@@ -196,8 +196,8 @@ async function fetchFontshareFallback(
|
||||
params: ProxyFontsParams,
|
||||
): Promise<ProxyFontsResponse> {
|
||||
// Import dynamically to avoid circular dependency
|
||||
const { fetchFontshareFonts } = await import('../fontshare/fontshare');
|
||||
const { normalizeFontshareFonts } = await import('../../lib/normalize/normalize');
|
||||
const { fetchFontshareFonts } = await import('$entities/Font/api/fontshare/fontshare');
|
||||
const { normalizeFontshareFonts } = await import('$entities/Font/lib/normalize/normalize');
|
||||
|
||||
// Map proxy params to Fontshare params
|
||||
const fontshareParams = {
|
||||
|
||||
Reference in New Issue
Block a user