Skip to content

Commit

Permalink
fix: path-prefix-less regression, cont’d
Browse files Browse the repository at this point in the history
  • Loading branch information
strogonoff committed Dec 12, 2024
1 parent b1216d4 commit ab68059
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/anafero/process.mts
Original file line number Diff line number Diff line change
Expand Up @@ -687,12 +687,8 @@ export async function * generateStaticSiteAssets(
? `${opts.pathPrefix}/`
: '/';
function expandGlobalPath(
/** Path without leading slash. */
path: string,
): string {
if (!opts.pathPrefix) {
return path;
}
const expanded = path.startsWith('/')
? `${opts.pathPrefix}${path}`
: `${prefixWithTrailing}${path}` ;
Expand Down

0 comments on commit ab68059

Please sign in to comment.