-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Description
build and cloudflare-pages set the Vite build.emptyOutDir to false.
e125070
vite-plugins/packages/build/src/base.ts
Line 38 in ee81be5
| emptyOutDir: false, |
This means that _routes.json is always in dist/,
so adding/removing files/directories to the public directory will not be applied to _routes.json.
vite-plugins/packages/build/src/adapter/cloudflare-pages/index.ts
Lines 30 to 33 in ee81be5
| // If _routes.json already exists, don't create it | |
| if (paths.some((p) => p.name === ROUTES_JSON_NAME)) { | |
| return | |
| } else { |
However, when generating a client, emptyOutDir: false. is required.
https://github.com/honojs/vite-plugins/blob/main/packages/build/README.md#build-a-client
Metadata
Metadata
Assignees
Labels
No labels