Skip to content

Commit

Permalink
fix port unavailable issue when running next start (#515)
Browse files Browse the repository at this point in the history
### Description

running multiple next apps with `pnpm start` enforces all the apps to
run on port 3000. causing port not available error for all the apps
other than the main app


![image](https://user-images.githubusercontent.com/26733312/211392107-4769ebf7-41bc-4cf7-8215-98da62cc5087.png)

### Solution
running the next apps on unique port.
added `-p 3001` to the start script
  • Loading branch information
devsrv committed Jan 15, 2023
1 parent a122b13 commit cb9ae8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solutions/microfrontends/apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"dev": "next dev -p 3001",
"build": "next build",
"start": "next start",
"start": "next start -p 3001",
"lint": "next lint",
"clean": "rm -rf .next && rm -rf .turbo"
},
Expand Down

3 comments on commit cb9ae8a

@vercel
Copy link

@vercel vercel bot commented on cb9ae8a Jan 15, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

app-dir-css-in-js – ./app-directory/css-in-js

app-dir-css-in-js.vercel.app
app-dir-css-in-js-git-main-now-examples.vercel.app
app-dir-css-in-js-now-examples.vercel.app

@vercel
Copy link

@vercel vercel bot commented on cb9ae8a Jan 15, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

app-dir-share-state – ./app-directory/share-state

app-dir-share-state-now-examples.vercel.app
app-dir-share-state.vercel.app
app-dir-share-state-git-main-now-examples.vercel.app

@vercel
Copy link

@vercel vercel bot commented on cb9ae8a Jan 15, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

solutions-microfrontends-docs – ./solutions/microfrontends/apps/docs

solutions-microfrontends-docs.vercel.app
solutions-microfrontends-docs-git-main.vercel.sh
solutions-microfrontends-docs.vercel.sh

Please sign in to comment.