Temporary workaround

This commit is contained in:
Wes Bos 2023-02-22 16:12:17 -05:00
parent 05a2adaac4
commit 4f4f62ffad

View file

@ -32,8 +32,9 @@ export function createRequestHandler({
const { pathname } = new URL(request.url) const { pathname } = new URL(request.url)
// Skip the handler for static files // Skip the handler for static files
if (pathname.startsWith(`${assetPath}/`)) { if (pathname.startsWith(`${assetPath}/`)) {
console.log('Skipping Remix handler for static file', pathname) // 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
return; // console.log('Skipping Remix handler for static file', pathname)
// return;
} }
try { try {
const loadContext = (await getLoadContext?.(request, context)) || context const loadContext = (await getLoadContext?.(request, context)) || context