0

I have recently started working on nextjs framework and I have created an index.js document inside pages folder. I wanted to implement social login authentication and found for some reasons I need to run next js in https mode.

Can anybody tell me how can I do that in dev machine.

Here is my error message

error message

and here is my package.json scripts

  "scripts": {
    "dev": "next -p 3001",
    "build": "next build",
    "start": "next start",
  },
brc-dd
  • 6,933
  • 3
  • 26
  • 51

1 Answers1

0

This article on freeCodeCamp looks promising :

https://www.freecodecamp.org/news/how-to-get-https-working-on-your-local-development-environment-in-5-minutes-7af615770eec/

Angad
  • 350
  • 2
  • 6