NextJS Server Actions
Advice for LARGE Product Embedding for AI?
Redirect and Middleware rewrites
14.2.4
.
So I have a multi-tenant app, and in my middleware is where I rewrite my NextResponse (“NextResponse.rewrite()”). I'm using the tenant as a subdomain, so let's say that my local url looks like this: http://mytenant.localhost:3000/
. So I have a case where I'm using redirect()
from next-navigation
to send the user to redirect('/the-redirect-url/foo/faa')
. In the middleware when I want to grab that subdomain from the req.headers.get('host')
I just got localhost
as a host, while if I just reload a page from my subdomain, I do get mytenant.localhost
as the host. So, what'm I doing wrong? Any hints or modifications? Did I miss something?
Also, because I’m rewriting the response in my middleware, should I be using “x-forwarded-host” instead of “host”? If I do, it works fine, so it is safe?...I am having difficulties with uploading Videos
Auth js authentication in Next JS for laravel backend
Is anyone else having issues with cloning skateshop
Most Performant Way of Implementing Dialog/Sheet for Row Click in a large DataTable
does utapi.deleteFiles actually delete the files?
UT wrong callback url
How to work with metadata for Linkedin Posts on Next 13+
generateMetadata()
on Next 13+ for Linkedin Posts? If yes, could u provide an example, please!...Setting cookies on tRPC calls
NextJS broken when built for a production environment.
Multiple Google OAuth Clients for a single Application?
How do I reset form fields through a server action / server component?
Can i use uploadthing with dotnet core api ???
Has anyone had success running a Node server on Railway.app for cheap?
Custom font makes text “sink down” a bit
Extending react-query with typescript
How to keep a local DB in sync with a DB I don't own?
Do i use server components , actions over express JS for my App