@server/next 0.20.37 → 0.20.38

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.37",
3
+ "version": "0.20.38",
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",
@@ -39,9 +39,7 @@ export default async function handleRequest(handlers, ctx) {
39
39
 
40
40
  // In Netlify, a non-response is perfectly valid, which would indicate
41
41
  // the edge function to just go ahead and consume the original resource
42
- if (ctx.platform.provider === "netlify") {
43
- return ctx.req.context.next();
44
- }
42
+ if (ctx.machine.provider === "netlify") return;
45
43
 
46
44
  // In other environments, a non-response is wrong and we should 404 then
47
45
  return new Response("Not Found", { status: 404 });