@edgeone/opennextjs-pages 0.2.7 → 0.2.8

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.
@@ -103,7 +103,6 @@ function getServerRoutes(staticRoutes, prerenderManifest, basePath = "") {
103
103
  if (route.namedRegex) {
104
104
  let src = convertNamedRegexToSrc(route.namedRegex, basePath);
105
105
  if (src) {
106
- src = src.replace(/\(\?:\/\)\?\$$/, "$");
107
106
  routes.push({ src });
108
107
  }
109
108
  } else if (route.regex) {
@@ -112,7 +111,6 @@ function getServerRoutes(staticRoutes, prerenderManifest, basePath = "") {
112
111
  if (basePath && !src.startsWith(`^${basePath}`)) {
113
112
  src = src.replace(/^\^/, `^${basePath}`);
114
113
  }
115
- src = src.replace(/\(\?:\/\)\?\$$/, "$");
116
114
  routes.push({ src });
117
115
  }
118
116
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgeone/opennextjs-pages",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "type": "module",