question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nuxt3 RC-12 version, production deployment, using Nginx reverse proxy, becomes very slow

See original GitHub issue

Environment


  • Operating System: Linux
  • Node Version: v16.15.1
  • Nuxt Version: 3.0.0-rc.12
  • Nitro Version: 0.5.4
  • Package Manager: pnpm@7.14.0
  • Builder: vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -
  • Nginx version: 1.18.0

Reproduction

none

Describe the bug

Developing with RC12, deploying to production, and using the Nginx reverse proxy, the access speed becomes extremely slow (HTML takes about 5 seconds to respond, but static JS file access speed is normal) , if access directly through the port, the speed is normal. After I dropped the NUXT version to RC11, didn’t have this problem

使用rc12版本进行开发,部署到生产环境,使用Nginx反向代理,访问速度变得特别慢(html需要5秒左右才能有响应,但是静态js文件访问速度是正常的),如果直接通过端口进行访问,则速度正常。我把nuxt版本降到rc11之后,就没有这个问题。

Additional context

none

Logs

none

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:9

github_iconTop GitHub Comments

5reactions
yuanquan8commented, Nov 1, 2022

@zenonux This can be done by adding the following configuration #8575

export default defineNuxtConfig({
  ...
  experimental: {
    writeEarlyHints: false,
  },
  ...
})
3reactions
yuanquan8commented, Nov 2, 2022
export default defineNuxtConfig({
  ...
  experimental: {
    writeEarlyHints: false,
  },
  ...
})

You can use this configuration to solve this problem because NGINX does not support a 103 status code, but this feature is enabled by default in RC12 @jilv220

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nuxt rc12 + Nginx - page keeps loading indefinitely #8503
I believe that it has something to do with the "Early Hints" feature. In nginx logs I can see that nuxt server replied...
Read more >
nuxt3 and vuetify3 Slow page response - nginx - Stack Overflow
I have created a front development environment using docker compose. The configuration is nginx + nuxt3 + vuetify3.
Read more >
NGINX - Nuxt
Using nginx with generated pages and a caching proxy as fallback: If you have a high volume website with regularly changing content, you...
Read more >
Nuxt3 生产环境部署Nginx反代加载html以及图片很慢需要10多 ...
Nuxt3 RC-12 version, production deployment, using Nginx reverse proxy, becomes very slow · Issue #8595 · nuxt/framework · GitHub.
Read more >
Host Nuxt.js, .Net Core, and Postgres with Docker, Nginx, and ...
Update — 10/31/2021, getting the ssl certs and running the proxy is ... to show you how to deploy and host an actual...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found