Skip to content

Commit c073b52

Browse files
authored
Merge pull request #1858 from yomalip/PE
[DO NOT MERGE] Update config file mount for web apps
2 parents 616c4fe + 02d5da4 commit c073b52

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

en/developer-docs/docs/develop-components/sharing-and-reusing/use-a-connection-in-your-web-application.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ To connect to a selected service, follow the step-by-step instructions given bel
3939
</head>
4040
<body>
4141
<div id="root"></div>
42-
<script src="/public/config.js"></script>
42+
<script src="./config.js"></script>
4343
</body>
4444
</html>
4545
```
@@ -104,7 +104,7 @@ To connect to a selected service, follow the step-by-step instructions given bel
104104
</head>
105105
<body>
106106
<div id="root"></div>
107-
<script src="/public/config.js"></script>
107+
<script src="./config.js"></script>
108108
</body>
109109
</html>
110110
```

en/developer-docs/docs/quick-start-guides/deploy-a-web-application-that-consumes-a-backend-service.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ A connection allows you to integrate the service with other services or external
231231
```
232232

233233
!!! tip
234-
You can refer to the configuration file mounted at `/app/public` as `./public/config.js` within your web application.
234+
You can refer to the mounted configuration file as `./config.js` within your web application.
235235

236236
4. Click **Next** to open the **Authentication** pane.
237237
5. Under **Authentication Settings**, ensure that **Managed authentication with Choreo** is enabled.

en/developer-docs/docs/references/troubleshoot-choreo.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To resolve the issue, follow the guidelines given below:
2525
1. Add the `config.js` file to the `app/public` directory in your repository.
2626
2. Reference it from the `index.html` file by adding a script tag as follows:
2727

28-
`<script src="public/config.js"></script>`
28+
`<script src="./config.js"></script>`
2929

3030
## Troubleshoot component deployment errors
3131

@@ -35,7 +35,7 @@ To resolve the issue, follow the guidelines given below:
3535

3636
- Reference the `config.js` file from the `index.html` file of your application by adding a script tag as follows:
3737

38-
`<script src="public/config.js"></script>`
38+
`<script src="./config.js"></script>`
3939

4040
- Verify that the path in the script tag matches the location where the `config.js` file is stored in your repository.
4141
- Make sure the script tag is placed within the `<body>` tag in your `index.html` file. You must ensure that it is not mistakenly placed within another HTML element.

en/developer-docs/docs/tutorials/consume-an-api-hosted-in-choreo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ To configure the front-end application:
146146
| **choreoApiUrl** | The **Reading List Service** URL from the endpoint table in the overview page. |
147147

148148
!!! tip
149-
You can refer to the mounted configuration file as `./public/config.js` within your web application.
149+
You can refer to the mounted configuration file as `./config.js` within your web application.
150150

151151
5. Click **Deploy**.
152152
6. Once deployed, copy the **Web App URL** from the development environment card.

en/pe-docs/docs/references/troubleshoot-choreo.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To resolve the issue, follow the guidelines given below:
2525
1. Add the `config.js` file to the `app/public` directory in your repository.
2626
2. Reference it from the `index.html` file by adding a script tag as follows:
2727

28-
`<script src="public/config.js"></script>`
28+
`<script src="./config.js"></script>`
2929

3030
## Troubleshoot component deployment errors
3131

@@ -35,7 +35,7 @@ To resolve the issue, follow the guidelines given below:
3535

3636
- Reference the `config.js` file from the `index.html` file of your application by adding a script tag as follows:
3737

38-
`<script src="public/config.js"></script>`
38+
`<script src="./config.js"></script>`
3939

4040
- Verify that the path in the script tag matches the location where the `config.js` file is stored in your repository.
4141
- Make sure the script tag is placed within the `<body>` tag in your `index.html` file. You must ensure that it is not mistakenly placed within another HTML element.

0 commit comments

Comments
 (0)