Skip to content

Commit c74f95c

Browse files
authored
Merge pull request #1690 from IFRCGo/fix/admin-url-link
fix: admin URL link
2 parents e4777ce + b9b4b44 commit c74f95c

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<br />
33
<a href="https://go.ifrc.org/">
44
<picture>
5-
<img src="./app/src/assets/icons/go-logo-2020.svg" width="200px" alt="IFRC GO Logo">
5+
<img src="https://github.com/IFRCGo/go-web-app/blob/develop/app/src/assets/icons/go-logo-2020.svg" width="200px" alt="IFRC GO Logo">
66
</picture>
77
</a>
88
</p>
@@ -24,8 +24,8 @@ Below are the steps to guide you through preparing your local environment for IF
2424
To begin, ensure you have network access. Then, you'll need the following:
2525

2626
1. [Git](https://git-scm.com/)
27-
2. [Node.JS](https://nodejs.org/en/) as specified under `engines` section in `package.json` file
28-
3. [Pnpm](https://pnpm.io/) as specified under `engines` section in `package.json` file
27+
2. [Node.js](https://nodejs.org/en/) as specified under `engines` section in `package.json` file
28+
3. [pnpm](https://pnpm.io/) as specified under `engines` section in `package.json` file
2929
4. Alternatively, you can use [Docker](https://www.docker.com/) to build the application.
3030

3131
> \[!NOTE]\
@@ -54,6 +54,13 @@ To begin, ensure you have network access. Then, you'll need the following:
5454
touch .env
5555
```
5656

57+
Example `.env` file
58+
```
59+
APP_TITLE=IFRC GO
60+
APP_ENVIRONMENT=testing
61+
...
62+
```
63+
5764
4. Start the development server:
5865

5966
```bash

app/src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const appPackageName = APP_PACKAGE_NAME;
2525
export const appRepositoryUrl = APP_REPOSITORY_URL;
2626

2727
export const api = APP_API_ENDPOINT;
28-
export const adminUrl = APP_ADMIN_URL ?? api;
28+
export const adminUrl = APP_ADMIN_URL ?? `${api}admin/`;
2929
export const mbtoken = APP_MAPBOX_ACCESS_TOKEN;
3030
export const riskApi = APP_RISK_API_ENDPOINT;
3131
export const tinyApiKey = APP_TINY_API_KEY;

0 commit comments

Comments
 (0)