No badges yet
No accepted solutions yet
Error after auth using v0 deployment and supabase
[quote="Leobianchi17, post:1, topic:4867, username:leobianchi17"] ``` import { createMiddlewareClient } from "@supabase/auth-helpers-nextjs" import { NextResponse } from...
How to update client component after server action was triggered?
I was able to fix it by creating a context around the app for the user. And then changing the login server action to return the user: ``` export async function login(formData:...
How to update client component after server action was triggered?
[quote="Anshuman Bhardwaj, post:6, topic:4875, username:anshumanb"] `redirect` [/quote] Yes, Here is a simplified example: Server action: ``` export async function login(formData:...
How to update client component after server action was triggered?
@anshumanb, certainly! Here's what I tried: User logs in -> Server action is triggered -> Returns success message -> Trigger a refresh (here it breaks) The data seems fine in all...
How to update client component after server action was triggered?
The problem is if a server action triggers the session change, the client component won't know about it as they are completely separated. I'm wondering how can I let the client...
How to update client component after server action was triggered?
I have a Next.js app and I'm using supabase for authentification. In my navbar (which is a client component) I have a login button which should change to a welcome message after a...
How to cache static SSG pages on vercel?
I realized that my site is using some dynamic data for the user account so nextjs automatically switches to SSR. Adding force-static works, but then I need to move the login...
How to cache static SSG pages on vercel?
Hi gang, I'm playing around with nextjs 15 and I'm trying to better understand the whole SSG part and output static pages. The problem I can see right now is that these static...
Struggling to revalidate cache on vercel
Hi Anshuman, thank you! And that makes sense! Just wondering if the network cache can also be programatically revalidated, similar to Next's revalidateTag?
Struggling to revalidate cache on vercel
Hi gang, I'm a bit stuck with how to handle cache revalidation with Nextjs and Vercel. I have an api endpoint where I get some posts from, and I tagged the request so I can later...