Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re authored and astrobot-houston committed Sep 1, 2023
1 parent c563343 commit d8ecae2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/astro/src/core/build/static-build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,14 +178,14 @@ async function ssrBuild(
// TODO: refactor our build logic to avoid this
if (name.includes(ASTRO_PAGE_EXTENSION_POST_PATTERN)) {
const [sanitizedName] = name.split(ASTRO_PAGE_EXTENSION_POST_PATTERN);
return `chunks/${sanitizedName}_[hash].mjs`
return `chunks/${sanitizedName}_[hash].mjs`;
}
// Injected routes include "pages/[name].[ext]" already. Clean those up!
if (name.startsWith('pages/')) {
const sanitizedName = name.split('.')[0];
return `chunks/${sanitizedName}_[hash].mjs`
return `chunks/${sanitizedName}_[hash].mjs`;
}
return `chunks/[name]_[hash].mjs`
return `chunks/[name]_[hash].mjs`;
},
assetFileNames: `${settings.config.build.assets}/[name].[hash][extname]`,
...viteConfig.build?.rollupOptions?.output,
Expand Down

0 comments on commit d8ecae2

Please sign in to comment.