Back to Wasp

Building The Web Client

web/docs/deployment/deployment-methods/_building-the-web-client.md

0.23.0575 B
Original Source

To build the web app, run the following command from your project root:

REACT_APP_API_URL=<url_to_wasp_backend> npx vite build

where <url_to_wasp_backend> is the URL of the Wasp server that you previously deployed.

The build output will be in .wasp/out/web-app/build.

:::caution Client Env Variables Remember, if you have defined any other client-side env variables in your project, make sure to add them to the command above when building your client :::