Giter Club home page Giter Club logo

Comments (6)

juliusmarminge avatar juliusmarminge commented on May 20, 2024

NEXTAUTH_URL is only for production (right?) so no need to include it in a dev .env-example.

from create-t3-app.

wlechowicz avatar wlechowicz commented on May 20, 2024

It's the secret that will sort of work in dev but will not in prod (they auto-generate a secret for dev).
The URL should be set always, but for things like Vercel previews and Vercel deployments, it will use VERCEL_URL.
https://next-auth.js.org/warnings#nextauth_url
https://next-auth.js.org/warnings#no_secret
https://next-auth.js.org/configuration/options#secret
The last one lists all the reasons why should not depend on the auto secret generation and that it will be removed, and it boggles my mind why they would ever come up with something like that in the first place.

from create-t3-app.

juliusmarminge avatar juliusmarminge commented on May 20, 2024

Oh right. You dont need it with Vercel was probably what I was thinking about.

Add 2 rows to the .env-example then. I dont think we need to parametrize it or autogenerate a secret to use. The file is an example and it is up to the user to set their own secrets.

from create-t3-app.

juliusmarminge avatar juliusmarminge commented on May 20, 2024

Oh right. You dont need it with Vercel was probably what I was thinking about.

Add 2 rows to the .env-example then. I dont think we need to parametrize it or autogenerate a secret to use. The file is an example and it is up to the user to set their own secrets.

from create-t3-app.

wlechowicz avatar wlechowicz commented on May 20, 2024

I totally agree that generating a secret goes too far beyond scaffolding so it's not a concern of this app.

from create-t3-app.

juliusmarminge avatar juliusmarminge commented on May 20, 2024

Implemented in #114

from create-t3-app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.