diff options
author | 2023-01-06 00:41:10 +0800 | |
---|---|---|
committer | 2023-01-05 10:41:10 -0600 | |
commit | 9963c6e4d50c392c3d1ac4492237020f15ccb1de (patch) | |
tree | 987b30220b3458bd6a2e295f52e2720e94b81c22 /packages/integrations/netlify/src | |
parent | f1da0da29f94d34a7960f5b84288b7efa5b113f3 (diff) | |
download | astro-9963c6e4d50c392c3d1ac4492237020f15ccb1de.tar.gz astro-9963c6e4d50c392c3d1ac4492237020f15ccb1de.tar.zst astro-9963c6e4d50c392c3d1ac4492237020f15ccb1de.zip |
feat: change path into assets (#5584)
* feat: change path
* feat: fix bug #5502
* fix: astro fix to patch
* feat: change to major
* chore: update changelog
* fix: change entryFileNames into assets folder
* fix: fix error message in test
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
Diffstat (limited to 'packages/integrations/netlify/src')
-rw-r--r-- | packages/integrations/netlify/src/integration-edge-functions.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/integrations/netlify/src/integration-edge-functions.ts b/packages/integrations/netlify/src/integration-edge-functions.ts index 35b660e2c..48be316d9 100644 --- a/packages/integrations/netlify/src/integration-edge-functions.ts +++ b/packages/integrations/netlify/src/integration-edge-functions.ts @@ -100,7 +100,7 @@ async function bundleServerEntry({ serverEntry, server }: BuildConfig, vite: any // Remove chunks, if they exist. Since we have bundled via esbuild these chunks are trash. try { const chunkFileNames = - vite?.build?.rollupOptions?.output?.chunkFileNames ?? 'chunks/chunk.[hash].mjs'; + vite?.build?.rollupOptions?.output?.chunkFileNames ?? 'assets/chunks/chunk.[hash].mjs'; const chunkPath = npath.dirname(chunkFileNames); const chunksDirUrl = new URL(chunkPath + '/', server); await fs.promises.rm(chunksDirUrl, { recursive: true, force: true }); |