Skip to content

Commit

Permalink
chore: fixing typo in the comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Sullivan committed May 3, 2022
1 parent 176aadc commit a363133
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/astro/src/core/build/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ async function generatePath(

debug('build', `Generating: ${pathname}`);

// If a base path was provided, append it to the stie URL. This ensures that
// If a base path was provided, append it to the site URL. This ensures that
// all injected scripts and links are referenced relative to the site and subpath.
const site = astroConfig.base !== '/'
? joinPaths(astroConfig.site?.toString() || 'http://localhost/', astroConfig.base)
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/src/core/path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ function isString(path: unknown): path is string {

export function joinPaths(...paths: (string | undefined)[]) {
return paths.filter(isString).map(trimSlashes).join('/');
}
}

0 comments on commit a363133

Please sign in to comment.