Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

https for dev-server #14783

Closed
Mechse opened this issue Sep 4, 2022 · 2 comments · Fixed by nuxt/framework#7271
Closed

https for dev-server #14783

Mechse opened this issue Sep 4, 2022 · 2 comments · Fixed by nuxt/framework#7271

Comments

@Mechse
Copy link

Mechse commented Sep 4, 2022

Environment


  • Operating System: Darwin
  • Node Version: v18.2.0
  • Nuxt Version: 3.0.0-rc.9
  • Nitro Version: 0.5.0
  • Package Manager: npm@8.12.1
  • Builder: vite
  • User Config: css, build, modules, buildModules, googleFonts
  • Runtime Modules: @pinia/nuxt@0.4.1
  • Build Modules: @nuxtjs/google-fonts@3.0.0-0

Reproduction

  1. Start a new project:
    https://v3.nuxtjs.org/getting-started/quick-start

  2. Install mkcert:
    https://github.com/FiloSottile/mkcert

  3. Create ssl -certificate:
    mkcert localhost

  4. Rewrite package.json:
    "dev": "nuxt dev --https --ssl-cert localhost.pem --ssl-key localhost-key.pem"

Describe the bug

I tested it within a valid project and the default boilerplate.
The results are the same.

Additional context

No response

Logs

500 
fetch failed ()

at async $fetchRaw2 (./node_modules/ohmyfetch/dist/chunks/fetch.mjs:131:20)
at async ./.nuxt/dev/index.mjs:457:20
at async ./.nuxt/dev/index.mjs:520:64
at async ./.nuxt/dev/index.mjs:106:22
at async ./node_modules/h3/dist/index.mjs:592:19
at async Server.nodeHandler (./node_modules/h3/dist/index.mjs:538:7)
@chrisnoden
Copy link

chrisnoden commented Sep 15, 2022

This problem still exists in rc10 but has evolved:

[nuxt] [request error] [unhandled] [500] request to https://0.0.0.0:3000/__nuxt_vite_node__/manifest failed, reason: unable to verify the first certificate ()
  at async $fetchRaw2 (./node_modules/ohmyfetch/dist/chunks/fetch.mjs:131:20)  

@pi0
Copy link
Member

pi0 commented Sep 15, 2022

With RC.10, you still need NODE_TLS_REJECT_UNAUTHORIZED=0 environment variable to be set for vite working. It should work out of the box with RC.11+ (via nuxt/framework#7547). You can use edge channel to try this.

@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe transferred this issue from nuxt/framework Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants