DEV Community

Cover image for Building a Next.js app with Netlify, NextAuth.js, Prisma, and a PlanetScale serverless database
etnoctua for PlanetScale

Posted on

7

Building a Next.js app with Netlify, NextAuth.js, Prisma, and a PlanetScale serverless database

Git-centric workflows have fundamentally changed how we build for the web. As developers, we want isolated environments to develop and test our applications. As Netlify’s CEO Matt Biilmann mentioned in his recent Jamstack Conf keynote, our back-end data layer is still a single branch. It’s often talking to a long-running server or a production environment.

It doesn’t have to be this way. PlanetScale supports database schema branching, deploy requests, and non-blocking schema changes. Your staging environment’s database can be isolated from the production environment’s database.

We are excited to announce a new Next.js starter app that can be deployed to Netlify with the “Deploy to Netlify” button, uses NextAuth.js for built-in authentication, and Prisma to interact with your PlanetScale database.

The starter app is located today on the Netlify Jamstack Templates page. Want to get started right away? Click the button below!

Deploy to Netlify

Note: After you deploy to Netlify, you will need to follow the instructions in the documentation to get your PlanetScale database up and running.

Since this is just the first version of this starter app, we would love to hear your feedback!

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay