From c0625c5cd625fbcb144d2f596edccc245f5d2a7c Mon Sep 17 00:00:00 2001
From: timothycarambat <rambat1010@gmail.com>
Date: Wed, 8 May 2024 09:27:03 -0700
Subject: [PATCH] update baremetal doc

---
 BARE_METAL.md | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/BARE_METAL.md b/BARE_METAL.md
index 17ad84f40..8d495d81b 100644
--- a/BARE_METAL.md
+++ b/BARE_METAL.md
@@ -30,6 +30,13 @@ Here you can find the scripts and known working process to run AnythingLLM outsi
 STORAGE_DIR="/your/absolute/path/to/server/.env"
 ```
 
+5. Edit the `frontend/.env` file for the `VITE_BASE_API` to now be set to `/api`. This is documented in the .env for which one you should use.
+```
+# VITE_API_BASE='http://localhost:3001/api' # Use this URL when developing locally
+# VITE_API_BASE="https://$CODESPACE_NAME-3001.$GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN/api" # for Github Codespaces
+VITE_API_BASE='/api' # Use this URL deploying on non-localhost address OR in docker.
+```
+
 ## To start the application
 
 AnythingLLM is comprised of three main sections. The `frontend`, `server`, and `collector`. When running in production you will be running `server` and `collector` on two different processes, with a build step for compilation of the frontend.