Running Frontend and Backend Separately in Dev Mode #8752
usmanalisons
started this conversation in
General
Replies: 1 comment
-
you need to run docker first to build those folders |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Hi everyone,
I cloned LibreChat
After this, ran the below
and started the backend with:
and the frontend with:
I haven't run
npm run frontend
or built the client, so theclient/dist
folder doesn’t exist.However, in
server/index.js
, I see the following:This causes the server to always look for
client/dist/index.html
, regardless of the environment. As expected, I get this error in the backend console:Is there a recommended way to run the backend and frontend separately in development mode without building the frontend first?
Or should the server code be adjusted to only load
dist/index.html
in production?Thanks in advance!
@danny-avila
Beta Was this translation helpful? Give feedback.
All reactions