Join the Webstudio community

Updated 4 weeks ago

How to Speed Up a Self-Hosted Web Studio Builder

I followed the guide from https://docs.webstudio.is/contributing/contributing-for-developers, and it works, but the loading is very slow even though it runs on localhost.

I tried running pnpm build and pnpm start in the apps/builder directory after slightly modifying the vite.config.js file by removing the Vercel plugin. (Without removing it, pnpm start wouldn't work—probably because I don't know how to run it locally with the Vercel plugin.) This approach works, but the login options (GitHub and secret) are disabled, even though I've configured them in .env, .env.production, and .env.development.

The .env file works when running pnpm dev but not with pnpm start.
O
B
z
11 comments
how much time does it take to load on an empty project? do you have dev tools open? cache disabled?
Dev is just slow
is it dashboard or project?
Kinda expected
slower yes, but not to the level one would write a thread about it, I don't think this is what's happening
even locally in dev mode, dashboard loads for me at 1.15s once cashed
builder loads for me in 3-5s after the first load (so with cash)
so load speed should be normal
my best bet is its either with disabled cache or the docker has no resources, I had lots of struggle when docker had too little memory
When I run it on my laptop, it takes about 4 minutes, but on the VPS, it takes around 14 minutes with pnpm dev.

However, if I use pnpm start, it only takes a few seconds, but the login options are disabled.

Is there a way to run web studio in production mode locally?
It takes 4 minutes to load dashboard on your local computer? Something is completely broken on your machine. We are talking seconds here.
Add a reply
Sign up and join the conversation on Discord