-
Notifications
You must be signed in to change notification settings - Fork 0
Troubleshooting
Alisha Evans edited this page Aug 21, 2023
·
4 revisions
more descriptive error message
TypeError [ERR_INVALID_URL]: Invalid URL
at new NodeError (node:internal/errors:400:5)
at URL.onParseError (node:internal/url:565:9)
at new URL (node:internal/url:645:5)
at parseUrl (.../node_modules/next-auth/utils/parse-url.js:17:16)
...
at Module.require (node:internal/modules/cjs/loader:1105:19) {
input: '',
code: 'ERR_INVALID_URL',
page: '/'
}
Solution: correct the value of NEXTAUTH_URL
in .env.local
. If this is the initial setup and you don't know that value yet, comment the variable out.