Skip to content

Commit

Permalink
fix netlify edge functions with assets
Browse files Browse the repository at this point in the history
  • Loading branch information
wesbos committed Feb 23, 2023
1 parent 5a9913c commit 93ff2d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 65 deletions.
63 changes: 0 additions & 63 deletions netlify-server.ts

This file was deleted.

5 changes: 3 additions & 2 deletions server.ts
Original file line number Diff line number Diff line change
@@ -1,7 +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 { createRequestHandler } from "./netlify-server";
import { createRequestHandler } from "@netlify/remix-edge-adapter";

export default createRequestHandler({
build,
Expand All @@ -12,4 +11,6 @@ export default createRequestHandler({
export const config = {
cache: "manual",
path: "/*",
// Pass all assets to the netlify asset server
excluded_patterns: ["/_assets/*"],
};

0 comments on commit 93ff2d3

Please sign in to comment.