Skip to content

Commit

Permalink
Composer config should use prefix not path
Browse files Browse the repository at this point in the history
  • Loading branch information
Qard authored Oct 3, 2024
1 parent 0e999eb commit 08c435f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/getting-started/quick-start-watt.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ Then, edit `web/composer/platformatic.json` to add the `node` app:
"services": [{
"id": "node",
"proxy": {
"path": "/node"
"prefix": "/node"
}
}],
"refreshTimeout": 1000
Expand Down Expand Up @@ -265,7 +265,7 @@ Finally, let's add `Next` to our composer:
"services": [{
"id": "node",
"proxy": {
"path": "/node"
"prefix": "/node"
}
}, {
"id": "next"
Expand All @@ -292,7 +292,7 @@ and the `path` in `web/composer/platformatic.json` accordingly.

## `fetch` the data from the Node.js app in the Next.js app

Replace `web/next/src/app/page.js`, with the following code:
Replace `web/next/app/page.js`, with the following code:

```js
import styles from "./page.module.css";
Expand Down

0 comments on commit 08c435f

Please sign in to comment.