mirror of
https://github.com/BradNut/awesome-uses
synced 2025-09-08 17:40:31 +00:00
Temporary workaround
This commit is contained in:
parent
05a2adaac4
commit
4f4f62ffad
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue