This commit is contained in:
Wes Bos 2023-02-22 15:49:44 -05:00
parent 151b434295
commit 05a2adaac4

View file

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