mirror of
https://github.com/learnhouse/docs.git
synced 2026-02-18 00:07:39 +01:00
fix: use new frontend directory
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
@@ -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
|
||||
```
|
||||
|
||||
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user