Skip to content

Commit

Permalink
asdasdasdasd
Browse files Browse the repository at this point in the history
  • Loading branch information
bartosz-skejcik committed Dec 22, 2023
1 parent d8a59e5 commit 62c5aa0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/api/edgestore/[...edgestore]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { createEdgeStoreNextHandler } from "@edgestore/server/adapters/next/app"
import { EdgeStoreProvider } from "@edgestore/server/providers/edgestore";
import getConfig from "next/config";

const { publicRuntimeConfig } = getConfig();
const { serverRuntimeConfig } = getConfig();

const es = initEdgeStore.create();

Expand All @@ -19,8 +19,8 @@ const edgeStoreRouter = es.router({
const handler = createEdgeStoreNextHandler({
router: edgeStoreRouter,
provider: EdgeStoreProvider({
accessKey: publicRuntimeConfig.edgestoreAccessKey,
secretKey: publicRuntimeConfig.edgestoreSecretKey,
accessKey: serverRuntimeConfig.edgestoreAccessKey,
secretKey: serverRuntimeConfig.edgestoreSecretKey,
}),
});

Expand Down
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
publicRuntimeConfig: {
serverRuntimeConfig: {
// Will only be available on the server side
edgestoreAccessKey: process.env.EDGE_STORE_ACCESS_KEY,
edgestoreSecretKey: process.env.EDGE_STORE_SECRET_KEY,
Expand Down

0 comments on commit 62c5aa0

Please sign in to comment.