From 65d4bc519c859f5c8ef6b1f2223f558ab2f4233e Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Tue, 14 Mar 2023 22:20:45 +0100 Subject: [PATCH] add env build configuration --- frontend/README_DEV.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/README_DEV.md b/frontend/README_DEV.md index 2f05668435..48a76a1b5e 100644 --- a/frontend/README_DEV.md +++ b/frontend/README_DEV.md @@ -157,10 +157,13 @@ To build the frontend as static assets, use: npm run build ``` -The default build assume you serve every non static files as the 200.html file which is catchall. If you prefer a normal layout, you can use the : +The output is in the `build` folder. + +The default build assume you serve every non static files as the 200.html file which is catchall. If you prefer a normal layout, you can use: ``` NOTCATCHALL=true npm run build ``` +which will generate an index.html and allow you to serve the frontend with any static server. Env variables used for build are set in .env file. See [https://vitejs.dev/guide/env-and-mode.html#env-files](https://vitejs.dev/guide/env-and-mode.html#env-files) for more details.