Skip to content

Commit

Permalink
fix(netlify-edge): handle static asset urls
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed May 16, 2023
1 parent 5c85c14 commit 116874f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/runtime/entries/netlify-edge.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
import "#internal/nitro/virtual/polyfill";
import { nitroApp } from "../app";
import { requestHasBody, useRequestBody } from "../utils";
import { isPublicAssetURL } from "#internal/nitro/virtual/public-assets";

export default async function (request: Request, _context) {
const url = new URL(request.url);

if (isPublicAssetURL(url.pathname)) {
return;
}

let body;
if (requestHasBody(request)) {
body = await useRequestBody(request);
Expand Down

0 comments on commit 116874f

Please sign in to comment.