nitropack-nightly 2.12.0-20250714-235420.f346ecf7 → 2.12.0-20250715-000039.a3743968
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/meta/index.mjs
CHANGED
|
@@ -44,6 +44,10 @@ const cloudflarePages = defineNitroPreset(
|
|
|
44
44
|
hooks: {
|
|
45
45
|
"build:before": async (nitro) => {
|
|
46
46
|
await enableNodeCompat(nitro);
|
|
47
|
+
if (!nitro.options.cloudflare.deployConfig) {
|
|
48
|
+
nitro.options.commands.preview = "npx wrangler pages dev {{ output.dir }}";
|
|
49
|
+
nitro.options.commands.deploy = "npx wrangler pages deploy {{ output.dir }}";
|
|
50
|
+
}
|
|
47
51
|
},
|
|
48
52
|
async compiled(nitro) {
|
|
49
53
|
await writeWranglerConfig(nitro, "pages");
|
|
@@ -71,6 +75,12 @@ const cloudflarePagesStatic = defineNitroPreset(
|
|
|
71
75
|
deploy: "npx wrangler --cwd ./ pages deploy"
|
|
72
76
|
},
|
|
73
77
|
hooks: {
|
|
78
|
+
"build:before": async (nitro) => {
|
|
79
|
+
if (!nitro.options.cloudflare.deployConfig) {
|
|
80
|
+
nitro.options.commands.preview = "npx wrangler pages dev {{ output.dir }}";
|
|
81
|
+
nitro.options.commands.deploy = "npx wrangler pages deploy {{ output.dir }}";
|
|
82
|
+
}
|
|
83
|
+
},
|
|
74
84
|
async compiled(nitro) {
|
|
75
85
|
await writeCFHeaders(nitro);
|
|
76
86
|
await writeCFPagesRedirects(nitro);
|
|
@@ -126,6 +136,10 @@ const cloudflareModule = defineNitroPreset(
|
|
|
126
136
|
hooks: {
|
|
127
137
|
"build:before": async (nitro) => {
|
|
128
138
|
await enableNodeCompat(nitro);
|
|
139
|
+
if (!nitro.options.cloudflare.deployConfig) {
|
|
140
|
+
nitro.options.commands.preview = "npx wrangler dev {{ output.serverDir }}/index.mjs --assets {{ output.publicDir }}";
|
|
141
|
+
nitro.options.commands.deploy = "npx wrangler deploy {{ output.serverDir }}/index.mjs --assets {{ output.publicDir }}";
|
|
142
|
+
}
|
|
129
143
|
},
|
|
130
144
|
async compiled(nitro) {
|
|
131
145
|
await writeWranglerConfig(nitro, "module");
|
package/package.json
CHANGED