@server/next 0.20.40 → 0.20.41
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@server/next",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.41",
|
|
4
4
|
"description": "A fully-fledged web server with routing, file uploads, sessions, static files, schema validation, websockets, testing, etc.",
|
|
5
5
|
"homepage": "https://server-js.com/",
|
|
6
6
|
"repository": "https://github.com/franciscop/server-next.git",
|
|
@@ -41,7 +41,9 @@ export default async function handleRequest(handlers, ctx) {
|
|
|
41
41
|
// the edge function to just go ahead and consume the original resource. But
|
|
42
42
|
// we have already "consumed" the resource, so we can only return the next one
|
|
43
43
|
if (ctx.machine.provider === "netlify") {
|
|
44
|
-
|
|
44
|
+
const response = await ctx.req.context.next();
|
|
45
|
+
console.log(response instanceof Response, response);
|
|
46
|
+
return response;
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
// In other environments, a non-response is wrong and we should 404 then
|