From d347980a21d86c5aeedd00b2540521db6ed2d856 Mon Sep 17 00:00:00 2001 From: swve Date: Thu, 19 Oct 2023 09:34:59 +0200 Subject: [PATCH] fix: use new frontend directory --- pages/self-hosting/configuration.mdx | 4 ++-- pages/self-hosting/organization-hosting-modes.mdx | 4 ++-- pages/setup-dev-environment.mdx | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pages/self-hosting/configuration.mdx b/pages/self-hosting/configuration.mdx index c62e687..354c602 100644 --- a/pages/self-hosting/configuration.mdx +++ b/pages/self-hosting/configuration.mdx @@ -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 ``` diff --git a/pages/self-hosting/organization-hosting-modes.mdx b/pages/self-hosting/organization-hosting-modes.mdx index 26e5047..3a2db81 100644 --- a/pages/self-hosting/organization-hosting-modes.mdx +++ b/pages/self-hosting/organization-hosting-modes.mdx @@ -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 ``` diff --git a/pages/setup-dev-environment.mdx b/pages/setup-dev-environment.mdx index 69df16f..3887240 100644 --- a/pages/setup-dev-environment.mdx +++ b/pages/setup-dev-environment.mdx @@ -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/