Skip to content

Commit

Permalink
fix error???? plssss
Browse files Browse the repository at this point in the history
  • Loading branch information
bartosz-skejcik committed Dec 22, 2023
1 parent 2d2ee96 commit 50353ef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/api/edgestore/[...edgestore]/route.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { initEdgeStore } from "@edgestore/server";
import { createEdgeStoreNextHandler } from "@edgestore/server/adapters/next/app";
import { EdgeStoreProvider } from "@edgestore/server/providers/edgestore";

const es = initEdgeStore.create();

Expand All @@ -12,6 +13,10 @@ const edgeStoreRouter = es.router({

const handler = createEdgeStoreNextHandler({
router: edgeStoreRouter,
provider: EdgeStoreProvider({
accessKey: process.env.EDGE_STORE_ACCESS_KEY,
secretKey: process.env.EDGE_STORE_SECRET_KEY,
}), // this is the default provider and can be omitted
});

export const dynamic = "force-dynamic";
Expand Down

0 comments on commit 50353ef

Please sign in to comment.