Skip to content

Commit 193b0ed

Browse files
committed
fix(qwik-city): remove doubling of assetDir on postBuild
1 parent 5a9123a commit 193b0ed

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-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/adapters/shared/vite/post-build.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ export async function postBuild(
4848
}
4949
};
5050

51-
const loadDir = async (fsDir: string, pathname: string) => {
51+
const loadDir = async (fsDir: string, pathname = '') => {
5252
const itemNames = await fs.promises.readdir(fsDir);
5353
await Promise.all(itemNames.map((i) => loadItem(fsDir, i, pathname)));
5454
};
5555

5656
if (fs.existsSync(clientOutDir)) {
57-
await loadDir(clientOutDir, pathName);
57+
await loadDir(clientOutDir);
5858
}
5959

6060
const notFoundPathsCode = createNotFoundPathsModule(pathName, notFounds, format);

0 commit comments

Comments
 (0)