nitropack-nightly 2.12.6-20250908-112948.bde8ce85 → 2.12.6-20250908-120209.81c2f9cd
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 +1 -1
- package/dist/presets/vercel/utils.mjs +7 -12
- package/package.json +1 -1
package/dist/meta/index.mjs
CHANGED
|
@@ -151,12 +151,13 @@ function generateBuildConfig(nitro, o11Routes) {
|
|
|
151
151
|
return config;
|
|
152
152
|
}
|
|
153
153
|
config.routes.push(
|
|
154
|
-
...
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
154
|
+
...nitro.options.routeRules["/"]?.isr ? [
|
|
155
|
+
{
|
|
156
|
+
src: "(?<url>/)",
|
|
157
|
+
dest: `/index${ISR_SUFFIX}?url=$url`
|
|
158
|
+
}
|
|
159
|
+
] : [],
|
|
160
|
+
...rules.filter(([key, value]) => value.isr !== void 0 && key !== "/").map(([key, value]) => {
|
|
160
161
|
const src = key.replace(/^(.*)\/\*\*/, "(?<url>$1/.*)");
|
|
161
162
|
if (value.isr === false) {
|
|
162
163
|
return {
|
|
@@ -171,12 +172,6 @@ function generateBuildConfig(nitro, o11Routes) {
|
|
|
171
172
|
)
|
|
172
173
|
};
|
|
173
174
|
}),
|
|
174
|
-
...nitro.options.routeRules["/"]?.isr ? [
|
|
175
|
-
{
|
|
176
|
-
src: "(?<url>/)",
|
|
177
|
-
dest: `/index${ISR_SUFFIX}?url=$url`
|
|
178
|
-
}
|
|
179
|
-
] : [],
|
|
180
175
|
...(o11Routes || []).map((route) => ({
|
|
181
176
|
src: joinURL(nitro.options.baseURL, route.src),
|
|
182
177
|
dest: withLeadingSlash(route.dest)
|
package/package.json
CHANGED