Comments (6)
NEXTAUTH_URL is only for production (right?) so no need to include it in a dev .env-example.
from create-t3-app.
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.
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.
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.
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.
Implemented in #114
from create-t3-app.
Related Issues (20)
- feat: Giest instead of Inter HOT 2
- bug: trpc mutate not working with app directory HOT 3
- feat: @tanstack/react-query v5 HOT 1
- bug: Version 7.24.2 not building with app router and trpc HOT 1
- bug: Cannot read properties of undefined (reading 'headers') - Clerk issue HOT 11
- feat: Disable NextJS telemetry by default HOT 5
- bug:
- bug: [drizzle] rename connectionString to uri HOT 1
- feat: initial db type selection HOT 1
- bug: Version 7.25.0 Mutation of posts not working in scaffolded app HOT 1
- bug: unable to run db:push script due to drizzle-kit bug in 0.20.7 HOT 5
- feat: update docs to use `t.createCallerFactory()`
- bug(docs): Layout shift caused by `client:only` Breadcrumbs
- bug: Types of property 'createUser' are incompatible. (node_modules/@auth/core and node_modules/next-auth) HOT 2
- bug: Vercel build fails with "Error: Cannot find module '/vercel/path0/install.js'" HOT 3
- bug: TRPCClientError: Unexpected non-whitespace character - NextJS 14 App router HOT 5
- bug: npm i in new app not working HOT 1
- bug: openid-client not included in dependencies which crashes when using pnpm HOT 2
- bug: Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy. HOT 3
- bug: TRPC Calls from RSC cause Next to throw dynamic server error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from create-t3-app.