Skip to content

Commit

Permalink
feat: change default port to 4321 (#7874)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
  • Loading branch information
ematipico and delucis committed Aug 8, 2023
1 parent dc13687 commit f01eb58
Show file tree
Hide file tree
Showing 75 changed files with 108 additions and 101 deletions.
7 changes: 7 additions & 0 deletions .changeset/unlucky-sheep-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'astro': major
---

Astro's default port when running the dev or preview server is now `4321`.

This will reduce conflicts with ports used by other tools.
4 changes: 2 additions & 2 deletions .devcontainer/basics/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/basics",

"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},

"forwardPorts": [3000],
"forwardPorts": [4321],

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

Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/blog/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/blog",

"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},

"forwardPorts": [3000],
"forwardPorts": [4321],

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

Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/deno/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/deno",

"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},

"forwardPorts": [3000],
"forwardPorts": [4321],

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

Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/docs/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/docs",

"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},

"forwardPorts": [3000],
"forwardPorts": [4321],

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

Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/framework-alpine/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/framework-alpine",

"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},

"forwardPorts": [3000],
"forwardPorts": [4321],

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

Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/framework-lit/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/framework-lit",

"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},

"forwardPorts": [3000],
"forwardPorts": [4321],

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

Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/framework-multiple/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/framework-multiple",

"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},

"forwardPorts": [3000],
"forwardPorts": [4321],

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

Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/framework-preact/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/framework-preact",

"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},

"forwardPorts": [3000],
"forwardPorts": [4321],

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

Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/framework-react/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/framework-react",

"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},

"forwardPorts": [3000],
"forwardPorts": [4321],

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

Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/framework-solid/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/framework-solid",

"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},

"forwardPorts": [3000],
"forwardPorts": [4321],

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

Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/framework-svelte/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/framework-svelte",

"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},

"forwardPorts": [3000],
"forwardPorts": [4321],

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

Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/framework-vue/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/framework-vue",

"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},

"forwardPorts": [3000],
"forwardPorts": [4321],

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

Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/hackernews/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/hackernews",

"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},

"forwardPorts": [3000],
"forwardPorts": [4321],

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

Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/minimal/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/minimal",

"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},

"forwardPorts": [3000],
"forwardPorts": [4321],

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

Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/non-html-pages/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/non-html-pages",

"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},

"forwardPorts": [3000],
"forwardPorts": [4321],

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

Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/portfolio/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/portfolio",

"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},

"forwardPorts": [3000],
"forwardPorts": [4321],

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

Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/ssr/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/ssr",

"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},

"forwardPorts": [3000],
"forwardPorts": [4321],

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

Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/with-markdown-plugins/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/with-markdown-plugins",

"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},

"forwardPorts": [3000],
"forwardPorts": [4321],

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

Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/with-markdown-shiki/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/with-markdown-shiki",

"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},

"forwardPorts": [3000],
"forwardPorts": [4321],

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

Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/with-mdx/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/with-mdx",

"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},

"forwardPorts": [3000],
"forwardPorts": [4321],

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

Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/with-nanostores/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/with-nanostores",

"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},

"forwardPorts": [3000],
"forwardPorts": [4321],

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

Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/with-tailwindcss/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/with-tailwindcss",

"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},

"forwardPorts": [3000],
"forwardPorts": [4321],

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

Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/with-vite-plugin-pwa/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/with-vite-plugin-pwa",

"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},

"forwardPorts": [3000],
"forwardPorts": [4321],

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

Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/with-vitest/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/with-vitest",

"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},

"forwardPorts": [3000],
"forwardPorts": [4321],

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

Expand Down
Loading

0 comments on commit f01eb58

Please sign in to comment.