FIX: Self-Hosted Performance Boost #1612
spammenotinoz
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Sorry if this is the wrong place, but thought it may help newbies like myself.
If you follow the instructions verbatim, it deploys a dev build without caching or optimisation.
I was able to gain a significant speed boost by deploying a prod build for the front-end. By significant, it went from unusable to vercel like performance.
Ensure you are in your chatbot-ui folder. For a front-end deployment don't worry about starting supabase.
Update your .env.local or system environment variables
These are the commands you need.
npm install supabase --save-build #supabase client
npm install #install dependencies
npm install react-hook-form #specifically install the react dependencies, missing from mine
npm run build #perform a prod build\compilation with caching and optimisation (will take longer than dev)
npm start #this will start the prod optimised instance
Beta Was this translation helpful? Give feedback.
All reactions