Skip to content

Commit 9054dee

Browse files
committed
fix(cloudflare): add worker to default conditions
1 parent 3065b86 commit 9054dee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/presets/cloudflare/preset.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const cloudflarePages = defineNitroPreset(
4343
{
4444
extends: "base-worker",
4545
entry: "./cloudflare/runtime/cloudflare-pages",
46-
exportConditions: ["workerd"],
46+
exportConditions: ["workerd", "worker"],
4747
minify: false,
4848
commands: {
4949
preview: "npx wrangler --cwd ./ pages dev",
@@ -137,7 +137,7 @@ const cloudflareModule = defineNitroPreset(
137137
output: {
138138
publicDir: "{{ output.dir }}/public/{{ baseURL }}",
139139
},
140-
exportConditions: ["workerd"],
140+
exportConditions: ["workerd", "worker"],
141141
minify: false,
142142
commands: {
143143
preview: "npx wrangler --cwd ./ dev",

0 commit comments

Comments
 (0)