Skip to content

Commit 9299762

Browse files
committed
fix(qwik-city): remove double assetsDir on bundle close of staticPaths
1 parent 38429a1 commit 9299762

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.changeset/deep-bushes-live.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@builder.io/qwik-city': minor
3+
---
4+
5+
remove double assetsDir on bundle close of staticPaths

packages/qwik-city/src/buildtime/vite/plugin.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,10 +277,9 @@ function qwikCityPlugin(userOpts?: QwikCityVitePluginOptions): any {
277277
const clientOutDir = qwikPlugin!.api.getClientOutDir();
278278

279279
if (outDir && clientOutDir) {
280-
const assetsDir = qwikPlugin!.api.getAssetsDir();
281280
const { staticPathsCode, notFoundPathsCode } = await postBuild(
282281
clientOutDir,
283-
assetsDir ? join(api.getBasePathname(), assetsDir) : api.getBasePathname(),
282+
api.getBasePathname(),
284283
[],
285284
ssrFormat,
286285
false

0 commit comments

Comments
 (0)