Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composer config should use prefix not path #170

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is correct dependening on the choices picked when creating a Next app.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I just went with the default selections and it was wrong for that.


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