From 50353ef44ddaa5d10e02ede3e38669bbde83ef69 Mon Sep 17 00:00:00 2001 From: Bartek Paczesny Date: Fri, 22 Dec 2023 19:21:35 +0100 Subject: [PATCH] fix error???? plssss --- app/api/edgestore/[...edgestore]/route.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/api/edgestore/[...edgestore]/route.ts b/app/api/edgestore/[...edgestore]/route.ts index 2abb042..c4421c3 100644 --- a/app/api/edgestore/[...edgestore]/route.ts +++ b/app/api/edgestore/[...edgestore]/route.ts @@ -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(); @@ -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";