Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/deep-bushes-live.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@builder.io/qwik-city': minor
---

remove double assetsDir on bundle close of staticPaths
4 changes: 2 additions & 2 deletions packages/qwik-city/src/adapters/shared/vite/post-build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ export async function postBuild(
}
};

const loadDir = async (fsDir: string, pathname: string) => {
const loadDir = async (fsDir: string, pathname = '') => {
const itemNames = await fs.promises.readdir(fsDir);
await Promise.all(itemNames.map((i) => loadItem(fsDir, i, pathname)));
};

if (fs.existsSync(clientOutDir)) {
await loadDir(clientOutDir, pathName);
await loadDir(clientOutDir);
}

const notFoundPathsCode = createNotFoundPathsModule(pathName, notFounds, format);
Expand Down
Loading