fix: use new frontend directory

This commit is contained in:
swve
2023-10-19 09:34:59 +02:00
parent 35390708c5
commit d347980a21
3 changed files with 7 additions and 7 deletions

View File

@@ -112,11 +112,11 @@ Your MongoDB Database connection string
## Frontend config file
You can also configure your frontend by creating a `.env` file in the `frontend` folder.
You can also configure your frontend by creating a `.env` file in the `apps/web` folder.
Here is an example of the `.env` file :
```env filename="front/.env" {1-2}
```env filename="apps/web/.env" {1-2}
NEXT_PUBLIC_LEARNHOUSE_MULTI_ORG=false
NEXT_PUBLIC_LEARNHOUSE_DEFAULT_ORG=defaultorg
```

View File

@@ -20,7 +20,7 @@ When using a Single Organization Setup you should refer your Organization's `slu
### Frontend Config
```bash filename="front/.env" {1-2}
```bash filename="apps/web/.env" {1-2}
NEXT_PUBLIC_LEARNHOUSE_MULTI_ORG=false
NEXT_PUBLIC_LEARNHOUSE_DEFAULT_ORG=defaultorg
```
@@ -29,6 +29,6 @@ NEXT_PUBLIC_LEARNHOUSE_DEFAULT_ORG=defaultorg
### Frontend Config
```bash filename="front/.env" {1-2}
```bash filename="apps/web/.env" {1-2}
NEXT_PUBLIC_LEARNHOUSE_MULTI_ORG=true
```

View File

@@ -64,7 +64,7 @@ general:
Go to the frontend folder
```shell copy
cd front
cd apps/web
```
This will install all the dependencies needed for the frontend
@@ -75,7 +75,7 @@ npm i
Add an .env file in the front folder with the following content
```env filename="front/.env" {1-2}
```env filename="apps/web/.env" {1-2}
NEXT_PUBLIC_LEARNHOUSE_MULTI_ORG=false
NEXT_PUBLIC_LEARNHOUSE_DEFAULT_ORG=test
NEXT_PUBLIC_LEARNHOUSE_API_URL=http://localhost:1338/api/v1/
@@ -116,7 +116,7 @@ Create your Organization, Account and roles.
You'll need to update the front env file to set your Organization as the default one, use the **slug** of your organization.
```env filename="front/.env" {2}
```env filename="apps/web/.env" {2}
NEXT_PUBLIC_LEARNHOUSE_MULTI_ORG=false
NEXT_PUBLIC_LEARNHOUSE_DEFAULT_ORG=REPLACE_WITH_YOUR_ORG_SLUG
NEXT_PUBLIC_LEARNHOUSE_API_URL=http://localhost:1338/api/v1/