This commit is contained in:
Wes Bos 2023-04-13 14:06:16 -04:00
parent f245eb5393
commit ceff2d0662

View file

@ -1,6 +1,6 @@
// Import path interpreted by the Remix compiler // Import path interpreted by the Remix compiler
import * as build from "@remix-run/dev/server-build"; import * as build from '@remix-run/dev/server-build';
import { createRequestHandler } from "@netlify/remix-edge-adapter"; import { createRequestHandler } from '@netlify/remix-edge-adapter';
export default createRequestHandler({ export default createRequestHandler({
build, build,
@ -9,8 +9,12 @@ export default createRequestHandler({
}); });
export const config = { export const config = {
cache: "manual", cache: 'manual',
path: "/*", path: '/*',
// Pass all assets to the netlify asset server // Pass all assets to the netlify asset server
excluded_patterns: ["/_assets/*"], excluded_patterns: [
'^\\/_assets\\/[^\\/]*$',
'^\\/shared\\/[^\\/]*$',
// '^\\/**\\/[^\\/]*$',
],
}; };