hoangvvo / nextjs-mongodb-app

A Next.js and MongoDB web application, designed with simplicity for learning and real-world applicability in mind.
https://nextjs-mongodb.now.sh/
MIT License
1.53k stars 286 forks source link

Invalid Url: undefined #91

Closed consciousweb closed 3 years ago

consciousweb commented 4 years ago

Describe the bug New unaltered clone of repo produces the following cli error:

TypeError [ERR_INVALID_URL]: Invalid URL: undefined at onParseError (internal/url.js:243:9) at new URL (internal/url.js:319:5) at eval (webpack-internal:///./pages/api/user/index.js:32:5) at Module../pages/api/user/index.js (/[redacted]/nextjs-mongodb-app/.next/server/pages/api/user.js:164:1)

To Reproduce Steps to reproduce the behavior: clone/npm i/ yarn dev

Expected behavior no errors?

Desktop (please complete the following information):

hoangvvo commented 4 years ago

Did you rename .env.example to .env? See https://github.com/hoangvvo/nextjs-mongodb-app#environmental-variables

hoangvvo commented 3 years ago

Close due to inactivity. Please reopen if needed.