From 4f4f62ffadee3df780a21fb0ba164e5c4bc2da05 Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Wed, 22 Feb 2023 16:12:17 -0500 Subject: [PATCH] Temporary workaround --- netlify-server.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/netlify-server.ts b/netlify-server.ts index e4cafd19..d016a1d5 100644 --- a/netlify-server.ts +++ b/netlify-server.ts @@ -32,8 +32,9 @@ export function createRequestHandler({ const { pathname } = new URL(request.url) // Skip the handler for static files if (pathname.startsWith(`${assetPath}/`)) { - console.log('Skipping Remix handler for static file', pathname) - return; + // Temporary fix - passing the request to the Netlify static asset handler causes a 203 Not Content error. Passing the through remix works, but I asssume isn't ideal + // console.log('Skipping Remix handler for static file', pathname) + // return; } try { const loadContext = (await getLoadContext?.(request, context)) || context