-
Notifications
You must be signed in to change notification settings - Fork 27.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Refactor with-supabase example to use ssr package (#57100)
### What? [1] Refactors `with-supabase` example to use new `@supabase/ssr` package [2] Makes landing page dynamic steps to connect Next.js to Supabase [3] Fixes a range of small bugs ### Why? [1] Simplifies creating a Supabase client [2] People were not understanding how to connect this template to Supabase [3] People don't like bugs ### How? [1] Declares a separate `createClient` function for client and server. Client version is used in Client Components, server version is used every where else - Server Components, Route Handlers, Server Actions, Middleware [2] Makes landing page a dynamic list of next steps to guide the user to success [3] Writing code to squash the bugs!
- Loading branch information
1 parent
7c803a7
commit d0e92b1
Showing
32 changed files
with
498 additions
and
382 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 0 additions & 29 deletions
29
examples/with-supabase/app/_examples/client-component/page.tsx
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
examples/with-supabase/app/_examples/route-handler/route.ts
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
examples/with-supabase/app/_examples/server-action/page.tsx
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
examples/with-supabase/app/_examples/server-component/page.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
d0e92b1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stats from current release
Default Build (Increase detected⚠️ )
General Overall increase⚠️
Client Bundles (main, webpack) Overall increase⚠️
Legacy Client Bundles (polyfills)
Client Pages
Client Build Manifests
Rendered Page Sizes
Edge SSR bundle Size Overall increase⚠️
Middleware size
Diff details
Diff for page.js
Diff for middleware.js
Diff for edge-ssr.js
Diff too large to display
Diff for image-HASH.js
Diff for 199-HASH.js
Diff too large to display
Diff for 3f784ff6-HASH.js
Diff too large to display
Diff for main-HASH.js
Diff too large to display