Skip to content

Commit c20fcae

Browse files
author
Paul Asjes
authored
Merge pull request #35 from workos/pma/update-route-example
Fix env variables and put route example in the right place
2 parents f0f6aeb + 16419cb commit c20fcae

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

.env.local.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
WORKOS_CLIENT_ID=
22
WORKOS_API_KEY=
3-
WORKOS_REDIRECT_URI=http://localhost:3000/callback
3+
NEXT_PUBLIC_WORKOS_REDIRECT_URI=http://localhost:3000/callback
44
WORKOS_COOKIE_PASSWORD=
55

File renamed without changes.

src/middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ import { authkitMiddleware } from "@workos-inc/authkit-nextjs";
33
export default authkitMiddleware();
44

55
// Match against the pages
6-
export const config = { matcher: ["/", "/account/:path*"] };
6+
export const config = { matcher: ["/", "/account/:path*", "/api/:path*"] };

0 commit comments

Comments
 (0)