A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/AlterClassIO/magic-next-auth below:

AlterClassIO/magic-next-auth: Magic Link Authentication in Next.js with Next-auth and Fauna

Magic Link Authentication in Next.js with NextAuth and Fauna by AlterClass.io.

1. Clone the repository and install dependencies
git clone https://github.com/AlterClassIO/magic-next-auth
cd magic-next-auth
npm install
2. Configure your local environment

Rename the .env.local.example file in this directory to .env.local (which will be ignored by Git):

cp .env.local.example .env.local

Add details for the SMTP server.

To run your site locally, use:

To run it in production mode, use:

npm run build
npm run start
4. Preparing for Production

You must set the NEXTAUTH_URL environment variable with the URL of your site, before deploying to production.

e.g. in your .env.local file - NEXTAUTH_URL=https://example.com

To do this with Vercel, you can use the Vercel project dashboard or their cli via the vc env command:

vc env add NEXTAUTH_URL production

MIT


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4