#Route Handlers with SSL Certificate
1 messages · Page 1 of 1 (latest)
Hi @restive herald. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
I apologize, but the provided knowledge sources do not contain specific information about passing SSL certificates with Next.js route handlers. The documents mainly discuss SSL certificates in the context of domain configuration and deployment on Vercel, but they don't address how to handle SSL certificates within Next.js route handlers directly.
For local development with HTTPS, Next.js does provide a way to generate self-signed certificates, as mentioned in the How can I run Next.js on localhost through HTTPS? guide. You can use the following command to start the Next.js development server with HTTPS enabled:
next dev --experimental-https
This will start the Next.js development server with HTTPS enabled on <https://localhost:3000.>