Skip to content

Commit

Permalink
Feature: Add route handler package for app directory (#458)
Browse files Browse the repository at this point in the history
* export route handler client package

* add changelog

* re-export server component client instead of duplicating
  • Loading branch information
dijonmusters authored Mar 7, 2023
1 parent c00dd07 commit 5ab18fe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/selfish-pears-applaud.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@supabase/auth-helpers-nextjs': patch
---

Export function to create Supabase Client in Next.js Route Handler functions
3 changes: 3 additions & 0 deletions packages/nextjs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,3 +239,6 @@ export function createServerComponentSupabaseClient<
cookieOptions
});
}

export const createRouteHandlerSupabaseClient =
createServerComponentSupabaseClient;

0 comments on commit 5ab18fe

Please sign in to comment.