[ci] format
This commit is contained in:
parent
c5633434f0
commit
d8ecae2c54
1 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue