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) 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('Continuing Remix handler for static file', pathname) console.log('Skipping Remix handler for static file', pathname)
// return return;
} }
try { try {
const loadContext = (await getLoadContext?.(request, context)) || context const loadContext = (await getLoadContext?.(request, context)) || context