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

SSR takes a long time on Windows #901

Open
archiewood opened this issue May 26, 2023 · 4 comments
Open

SSR takes a long time on Windows #901

archiewood opened this issue May 26, 2023 · 4 comments

Comments

@archiewood
Copy link
Member

archiewood commented May 26, 2023

(Timebox)

Steps To Reproduce

npx degit evidence-dev/template my-project
cd my-project
npm i
npm run dev

It takes ~20s to launch the dev server

Environment

  • Node version (node -v):
  • npm version (npm -v):
  • OS: Windows
  • Browser:

Expected Behavior

SSR is fast and page opens in ~5s

Actual Behaviour

SSR is slow and takes ~20s

@archiewood archiewood added bug Something isn't working to-review Evidence team to review labels May 26, 2023
@RandomFractals
Copy link

On Windows 10 with NodeJS v16.17:

evidence-start-stop-server-status

@archiewood
Copy link
Member Author

archiewood commented May 26, 2023

Perhaps tailwind the culprit:
vitejs/vite#5145 (comment)

@csjh
Copy link
Contributor

csjh commented Jun 19, 2023

Seems like the super long delay right after npm i is from dependency pre-bundling -- though I think vitejs/vite#12441 fixes/speeds up? When I override to 4.3.9 it's around 20s vs. 40 before. Still not sure about the shorter-but-still-long delay for subsequent runs

@hughess
Copy link
Member

hughess commented Jun 23, 2023

Here's some terminal feedback I got from a fresh install - this is on Mac, but I assume still applicable here.

This was without touching anything after starting the server. Looks like it ran the query 4 times upon server start:

CleanShot 2023-06-23 at 13 59 26@2x

@mcrascal mcrascal removed the bug Something isn't working label Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants