mirror of
https://github.com/BradNut/awesome-uses
synced 2025-09-08 17:40:31 +00:00
20 lines
541 B
TypeScript
20 lines
541 B
TypeScript
// Import path interpreted by the Remix compiler
|
|
import * as build from '@remix-run/dev/server-build';
|
|
import { createRequestHandler } from '@netlify/remix-edge-adapter';
|
|
|
|
export default createRequestHandler({
|
|
build,
|
|
// process.env.NODE_ENV is provided by Remix at compile time
|
|
mode: process.env.NODE_ENV,
|
|
});
|
|
|
|
export const config = {
|
|
cache: 'manual',
|
|
path: '/*',
|
|
// Pass all assets to the netlify asset server
|
|
excluded_patterns: [
|
|
'^\\/_assets\\/[^\\/]*$',
|
|
'^\\/shared\\/[^\\/]*$',
|
|
// '^\\/**\\/[^\\/]*$',
|
|
],
|
|
};
|