diff --git a/apps/web/src/app/(dashboard)/api/proxy/[...path]/route.ts b/apps/web/src/app/(dashboard)/api/proxy/[...path]/route.ts index dd3d740..6f8b164 100644 --- a/apps/web/src/app/(dashboard)/api/proxy/[...path]/route.ts +++ b/apps/web/src/app/(dashboard)/api/proxy/[...path]/route.ts @@ -15,12 +15,12 @@ import proxyFactory from "../../proxy"; // The withApiAuthRequired is evaluated at build time but expectes AUTH0_SECRET to be set. const oldAuth0Secret = process.env.AUTH0_SECRET; -process.env.AUTH0_SECRET = - process.env.AUTH0_SECRET || "never-used-secret-value"; +process.env["AUTH0_SECRET"] = + process.env["AUTH0_SECRET"] || "never-used-secret-value"; const proxy = withApiAuthRequired( proxyFactory({ addAccessTokenToRequest: true }) ); -process.env.AUTH0_SECRET = oldAuth0Secret; +process.env["AUTH0_SECRET"] = oldAuth0Secret; export const GET = proxy; export const POST = proxy;