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.
@@ -1,4 +1,4 @@
1
- const version = "2.12.6-20250908-112948.bde8ce85";
1
+ const version = "2.12.6-20250908-120209.81c2f9cd";
2
2
 
3
3
  const compatibilityChanges = [
4
4
  {
@@ -151,12 +151,13 @@ function generateBuildConfig(nitro, o11Routes) {
151
151
  return config;
152
152
  }
153
153
  config.routes.push(
154
- ...rules.filter(
155
- ([key, value]) => (
156
- // value.isr === false || (value.isr && key.includes("/**"))
157
- value.isr !== void 0 && key !== "/"
158
- )
159
- ).map(([key, value]) => {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitropack-nightly",
3
- "version": "2.12.6-20250908-112948.bde8ce85",
3
+ "version": "2.12.6-20250908-120209.81c2f9cd",
4
4
  "description": "Build and Deploy Universal JavaScript Servers",
5
5
  "repository": "nitrojs/nitro",
6
6
  "license": "MIT",