@gigadrive/network-config 3.1.1 → 3.1.2
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/index.d.mts +35 -3
- package/dist/index.d.ts +35 -3
- package/dist/index.js +728 -607
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -1198,15 +1198,13 @@ var VercelBuildOutputParser = class extends Effect12.Service()("VercelBuildOutpu
|
|
|
1198
1198
|
destination: functionEntrypointPath,
|
|
1199
1199
|
handler: handlerType
|
|
1200
1200
|
};
|
|
1201
|
-
const configRoutes = config.routes?.filter((r) => "dest" in r && r.dest === `/${functionName}`).map(
|
|
1202
|
-
(r)
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
})
|
|
1209
|
-
) ?? [];
|
|
1201
|
+
const configRoutes = config.routes?.filter((r) => "dest" in r && r.dest === `/${functionName}`).map((r) => ({
|
|
1202
|
+
path: ("src" in r ? r.src : void 0) ?? `/${functionName}`,
|
|
1203
|
+
methods: ["ANY"],
|
|
1204
|
+
headers: {},
|
|
1205
|
+
destination: functionEntrypointPath,
|
|
1206
|
+
handler: handlerType
|
|
1207
|
+
})) ?? [];
|
|
1210
1208
|
if (!result.routes) {
|
|
1211
1209
|
result.routes = [];
|
|
1212
1210
|
}
|