Skip to content

Commit 9a3d525

Browse files
authored
Omit files from public directory in Worker builds (#8091)
* Omit public directory in worker builds * Added changeset * Edit changeset
1 parent 027698c commit 9a3d525

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/hip-beans-hug.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@cloudflare/vite-plugin": patch
3+
---
4+
5+
Omit files from public directory in Worker builds

packages/vite-plugin-cloudflare/src/cloudflare-environment.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ export function createCloudflareEnvironmentOptions(
148148
// We need to enable `emitAssets` in order to support additional modules defined by `rules`
149149
emitAssets: true,
150150
outDir: getOutputDirectory(userConfig, environmentName),
151+
copyPublicDir: false,
151152
ssr: true,
152153
rollupOptions: {
153154
// Note: vite starts dev pre-bundling crawling from either optimizeDeps.entries or rollupOptions.input

0 commit comments

Comments
 (0)