diff --git a/apps/partial-prerendering/.env b/apps/partial-prerendering/.env new file mode 100644 index 000000000..76923dccb --- /dev/null +++ b/apps/partial-prerendering/.env @@ -0,0 +1,4 @@ +NEXT_PUBLIC_STACK_URL=# enter your stack endpoint here, e.g. http://localhost:8101 +NEXT_PUBLIC_STACK_PROJECT_ID=# enter your stack project id here +NEXT_PUBLIC_STACK_PUBLISHABLE_CLIENT_KEY=# enter your stack publishable client key here +STACK_SECRET_SERVER_KEY=# enter your stack secret server key here diff --git a/packages/stack-server/src/app/api/v1/current-user/route.tsx b/packages/stack-server/src/app/api/v1/current-user/route.tsx index b30d0b087..b4e90d40a 100644 --- a/packages/stack-server/src/app/api/v1/current-user/route.tsx +++ b/packages/stack-server/src/app/api/v1/current-user/route.tsx @@ -68,7 +68,7 @@ const handler = deprecatedSmartRouteHandler(async (req: NextRequest) => { const asValid = await isProjectAdmin(projectId, adminAccessToken); if (!pkValid && !skValid && !asValid) { - throw new StatusError(StatusError.Forbidden); + throw new StatusError(StatusError.Forbidden, "API key is invalid"); } const decodedAccessToken = await decodeAccessToken(authorization.split(" ")[1]); diff --git a/packages/stack-server/src/app/layout.tsx b/packages/stack-server/src/app/layout.tsx index 75532bac2..4af422eb4 100644 --- a/packages/stack-server/src/app/layout.tsx +++ b/packages/stack-server/src/app/layout.tsx @@ -34,7 +34,7 @@ export default function RootLayout({ const headTags: TagConfigJson[] = JSON.parse(getEnvVariable('NEXT_PUBLIC_STACK_HEAD_TAGS')); return ( - +