Skip to content

Commit

Permalink
Merge pull request platformsh#4293 from platformsh/fix-nextjs-config
Browse files Browse the repository at this point in the history
Fix nextjs config
  • Loading branch information
Kemi-Elizabeth authored Dec 10, 2024
2 parents b13c02f + fdcc611 commit 825d043
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sites/upsun/src/get-started/stacks/nextjs.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,12 @@ applications:
npm run build
web:
commands:
start: npm run start -p $PORT
start: "npx next start -p $PORT"
upstream:
socket_family: tcp
locations:
"/":
passthru: true
passthru: true
routes:
"https://{default}/": { type: upstream, upstream: "myapp:http" }
"http://{default}/": { type: redirect, to: "https://{default}/" }
Expand Down

0 comments on commit 825d043

Please sign in to comment.