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 * as build from "@remix-run/dev/server-build";
import { createRequestHandler } from "@netlify/remix-edge-adapter";
import * as build from '@remix-run/dev/server-build';
import { createRequestHandler } from '@netlify/remix-edge-adapter';
export default createRequestHandler({
build,
@ -9,8 +9,12 @@ export default createRequestHandler({
});
export const config = {
cache: "manual",
path: "/*",
cache: 'manual',
path: '/*',
// Pass all assets to the netlify asset server
excluded_patterns: ["/_assets/*"],
excluded_patterns: [
'^\\/_assets\\/[^\\/]*$',
'^\\/shared\\/[^\\/]*$',
// '^\\/**\\/[^\\/]*$',
],
};