Skip to content

Commit fb5cd6b

Browse files
ematipicodelucis
andcommitted
feat: change default port to 4321 (#7874)
Co-authored-by: Chris Swithinbank <[email protected]>
1 parent 8368447 commit fb5cd6b

75 files changed

Lines changed: 108 additions & 101 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/unlucky-sheep-build.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'astro': major
3+
---
4+
5+
Astro's default port when running the dev or preview server is now `4321`.
6+
7+
This will reduce conflicts with ports used by other tools.

.devcontainer/basics/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
"workspaceFolder": "/workspaces/astro/examples/basics",
88

99
"portsAttributes": {
10-
"3000": {
10+
"4321": {
1111
"label": "Application",
1212
"onAutoForward": "openPreview"
1313
}
1414
},
1515

16-
"forwardPorts": [3000],
16+
"forwardPorts": [4321],
1717

1818
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
1919

.devcontainer/blog/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
"workspaceFolder": "/workspaces/astro/examples/blog",
88

99
"portsAttributes": {
10-
"3000": {
10+
"4321": {
1111
"label": "Application",
1212
"onAutoForward": "openPreview"
1313
}
1414
},
1515

16-
"forwardPorts": [3000],
16+
"forwardPorts": [4321],
1717

1818
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
1919

.devcontainer/deno/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
"workspaceFolder": "/workspaces/astro/examples/deno",
88

99
"portsAttributes": {
10-
"3000": {
10+
"4321": {
1111
"label": "Application",
1212
"onAutoForward": "openPreview"
1313
}
1414
},
1515

16-
"forwardPorts": [3000],
16+
"forwardPorts": [4321],
1717

1818
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
1919

.devcontainer/docs/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
"workspaceFolder": "/workspaces/astro/examples/docs",
88

99
"portsAttributes": {
10-
"3000": {
10+
"4321": {
1111
"label": "Application",
1212
"onAutoForward": "openPreview"
1313
}
1414
},
1515

16-
"forwardPorts": [3000],
16+
"forwardPorts": [4321],
1717

1818
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
1919

.devcontainer/framework-alpine/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
"workspaceFolder": "/workspaces/astro/examples/framework-alpine",
88

99
"portsAttributes": {
10-
"3000": {
10+
"4321": {
1111
"label": "Application",
1212
"onAutoForward": "openPreview"
1313
}
1414
},
1515

16-
"forwardPorts": [3000],
16+
"forwardPorts": [4321],
1717

1818
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
1919

.devcontainer/framework-lit/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
"workspaceFolder": "/workspaces/astro/examples/framework-lit",
88

99
"portsAttributes": {
10-
"3000": {
10+
"4321": {
1111
"label": "Application",
1212
"onAutoForward": "openPreview"
1313
}
1414
},
1515

16-
"forwardPorts": [3000],
16+
"forwardPorts": [4321],
1717

1818
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
1919

.devcontainer/framework-multiple/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
"workspaceFolder": "/workspaces/astro/examples/framework-multiple",
88

99
"portsAttributes": {
10-
"3000": {
10+
"4321": {
1111
"label": "Application",
1212
"onAutoForward": "openPreview"
1313
}
1414
},
1515

16-
"forwardPorts": [3000],
16+
"forwardPorts": [4321],
1717

1818
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
1919

.devcontainer/framework-preact/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
"workspaceFolder": "/workspaces/astro/examples/framework-preact",
88

99
"portsAttributes": {
10-
"3000": {
10+
"4321": {
1111
"label": "Application",
1212
"onAutoForward": "openPreview"
1313
}
1414
},
1515

16-
"forwardPorts": [3000],
16+
"forwardPorts": [4321],
1717

1818
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
1919

.devcontainer/framework-react/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
"workspaceFolder": "/workspaces/astro/examples/framework-react",
88

99
"portsAttributes": {
10-
"3000": {
10+
"4321": {
1111
"label": "Application",
1212
"onAutoForward": "openPreview"
1313
}
1414
},
1515

16-
"forwardPorts": [3000],
16+
"forwardPorts": [4321],
1717

1818
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
1919

0 commit comments

Comments
 (0)