Skip to content

Commit e97f88e

Browse files
ematipicoElianCodessarah11918yanthomasdev
authored
[i18nIgnore] feat: change default port (#3977)
* feat: change default port * note that 4322 will be used when 4321 is in use * Generalise use of http://localhost * Generalise use of http:// * chore: update remaining ports * chore: remove https from localhost URL's --------- Co-authored-by: Elian ☕️ <[email protected]> Co-authored-by: Sarah Rainsberger <[email protected]> Co-authored-by: Yan Thomas <[email protected]>
1 parent a4fe776 commit e97f88e

File tree

123 files changed

+260
-236
lines changed

Some content is hidden

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

123 files changed

+260
-236
lines changed

old-translations/de/installation.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Jetzt kannst du den Platzhalter im Abschnitt "scripts" deiner `package.json`-Dat
9999
}
100100
```
101101

102-
Der Befehl [`dev`](#start-astro) startet den Astro Entwicklungsserver auf `http://localhost:3000`. Sobald dein Projekt fertig ist, gibt der Befehl [`build`](#build-astro) dein Projekt in das Verzeichnis `dist/` aus. [Lese mehr über das Veröffentlichen von Astro-Builds](/guides/deploy).
102+
Der Befehl [`dev`](#start-astro) startet den Astro Entwicklungsserver auf `http://localhost:4321`. Sobald dein Projekt fertig ist, gibt der Befehl [`build`](#build-astro) dein Projekt in das Verzeichnis `dist/` aus. [Lese mehr über das Veröffentlichen von Astro-Builds](/guides/deploy).
103103

104104
### Erstelle deine erste Seite
105105

@@ -145,7 +145,7 @@ Du kannst weitere Seiten im Verzeichnis `src/pages` erstellen - Astro verwendet
145145
npm run dev
146146
```
147147

148-
Astro wird von nun an deine Anwendung unter `http://localhost:3000` bereitstellen. Wenn du diese URL in deinem Browser öffnest, solltest du Astros "Hello, World" sehen.
148+
Astro wird von nun an deine Anwendung unter `http://localhost:4321` bereitstellen. Wenn du diese URL in deinem Browser öffnest, solltest du Astros "Hello, World" sehen.
149149

150150
Falls du deinen Entwicklungsfortschritt im lokalen Netzwerk teilen oder die Anwendung von einem Telefon aus testen möchtest, füge einfach die folgende Option in `astro.config.mjs` hinzu:
151151

old-translations/de/quick-start.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ In deinem Projektverzeichnis führe den folgenden Befehl in deinem Terminal aus:
4141
npm run dev
4242
```
4343

44-
Astro wird von nun an deine Anwendung unter [http://localhost:3000](http://localhost:3000) bereitstellen. Wenn du diese URL in deinem Browser öffnest, solltest du Astros "Hello, World" sehen.
44+
Astro wird von nun an deine Anwendung unter [http://localhost:4321](http://localhost:4321) bereitstellen. Wenn du diese URL in deinem Browser öffnest, solltest du Astros "Hello, World" sehen.
4545

4646
Der Server wird nun auf alle Änderungen in deinem `src/`-Verzeichnisch lauschen, sodass du deine Anwendung nicht nach jeder Änderung neu starten musst.
4747

old-translations/es/installation.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Ahora, puedes reemplazar la sección de "scripts" del archivo `package.json` que
9898
}
9999
```
100100

101-
El comando [`dev`](#start-astro) inicia el servidor de desarrollo de Astro en `http://localhost:3000`. Una vez que tu proyecto esté listo, el comando [`build`](#build-astro) genera tu proyecto en el directorio `dist/`. [Lee más sobre cómo desplegar Astro en la guía de despliegue](/es/guides/deploy).
101+
El comando [`dev`](#start-astro) inicia el servidor de desarrollo de Astro en `http://localhost:4321`. Una vez que tu proyecto esté listo, el comando [`build`](#build-astro) genera tu proyecto en el directorio `dist/`. [Lee más sobre cómo desplegar Astro en la guía de despliegue](/es/guides/deploy).
102102

103103
### Crear tu primera página
104104

@@ -144,7 +144,7 @@ Puedes crear más páginas en el directorio `src/pages` y Astro utilizará los a
144144
npm run dev
145145
```
146146

147-
Ahora Astro estará corriendo tu aplicación en `http://localhost:3000`. Al abrir esta URL en tu navegador, deberías ver el “¡Hola, Mundo!” de Astro.
147+
Ahora Astro estará corriendo tu aplicación en `http://localhost:4321`. Al abrir esta URL en tu navegador, deberías ver el “¡Hola, Mundo!” de Astro.
148148

149149
Si necesitas compartir tu progreso de desarrollo en la red local o revisar la aplicación desde un teléfono, sólo agrega la siguiente opción en `astro.config.mjs`:
150150

old-translations/es/quick-start.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Dentro del directorio de tu proyecto, ingresa el siguiente comando en la termina
3939
npm run dev
4040
```
4141

42-
Astro comenzará a correr en el servidor de desarrollo en [http://localhost:3000](http://localhost:3000). Abre esta ubicación en tu navegador, deberías ver la página de "¡Hola Mundo!" de Astro.
42+
Astro comenzará a correr en el servidor de desarrollo en [http://localhost:4321](http://localhost:4321). Abre esta ubicación en tu navegador, deberías ver la página de "¡Hola Mundo!" de Astro.
4343

4444
El servidor escuchará los cambios en vivo de los archivos en tu carpeta `src/`, así que, no necesitarás reiniciar la aplicación cuando hagas cambios durante el desarrollo.
4545

old-translations/fi/quick-start.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Siirry takaisin komentoriville ja suorita tämä komento projektin hakemistossa:
3737
npm run dev
3838
```
3939

40-
Tämän jälkeen ohjelma on käynnissä osoitteessa [http://localhost:3000](http://localhost:3000). Avaa tämä URL selaimessa nähdäksesi viestin "Moi maailma!", jonka kopioimme edellisessä vaiheessa.
40+
Tämän jälkeen ohjelma on käynnissä osoitteessa [http://localhost:4321](http://localhost:4321). Avaa tämä URL selaimessa nähdäksesi viestin "Moi maailma!", jonka kopioimme edellisessä vaiheessa.
4141

4242
Astro seuraa muutoksia `src/`-hakemiston sisällä, joten ohjelmaa ei tarvitse käynnistää uudelleen tehdessäsi muutoksia siihen koodatessasi.
4343

old-translations/fr/installation.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Vous pouvez aussi remplacer la section "scripts" du fichier `package.json` avec
9696
}
9797
```
9898

99-
La commande [`dev`](#start-astro) démarre le serveur de développement Astro à l'adresse `http://localhost:3000`. Une fois votre projet terminé, la commande [`build`](#build-astro) produit votre site dans le dossier `dist/`. [En savoir plus sur le déploiement d'un site développé avec Astro.](/guides/deploy)
99+
La commande [`dev`](#start-astro) démarre le serveur de développement Astro à l'adresse `http://localhost:4321`. Une fois votre projet terminé, la commande [`build`](#build-astro) produit votre site dans le dossier `dist/`. [En savoir plus sur le déploiement d'un site développé avec Astro.](/guides/deploy)
100100

101101
### Créer une première page
102102

@@ -133,15 +133,15 @@ console.log('Coucou dans le terminal')
133133

134134
Vous venez de lire un exemple de syntaxe des composants Astro, inspirée par le HTML et le JSX.
135135

136-
Vous pouvez continuer à ajouter des fichiers dans le dossier `src/pages`, et Astro se servira du nom du fichier pour ajouter des pages à votre site. Par exemple, si vous ajoutez une page `src/pages/a-propos.astro` (par exemple en reprenant le code ci-dessus), Astro va générer une nouvelle page à l'adresse `http://localhost:3000/a-propos`.
136+
Vous pouvez continuer à ajouter des fichiers dans le dossier `src/pages`, et Astro se servira du nom du fichier pour ajouter des pages à votre site. Par exemple, si vous ajoutez une page `src/pages/a-propos.astro` (par exemple en reprenant le code ci-dessus), Astro va générer une nouvelle page à l'adresse `http://localhost:4321/a-propos`.
137137

138138
## [Démarrer Astro](#démarrer-astro)
139139

140140
```bash
141141
npm run dev
142142
```
143143

144-
Astro va démarrer votre site à l'adresse `http://localhost:3000`. En ouvrant cette URL dans votre navigateur, vous devriez voir s'afficher "Hello, World", ou bien la page créée précédemment.
144+
Astro va démarrer votre site à l'adresse `http://localhost:4321`. En ouvrant cette URL dans votre navigateur, vous devriez voir s'afficher "Hello, World", ou bien la page créée précédemment.
145145

146146
## [Compiler avec Astro](#compiler-avec-astro)
147147

old-translations/fr/quick-start.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Depuis un terminal ouvert dans votre projet, entrez la commande suivante :
3535
npm run dev
3636
```
3737

38-
Astro va lancer un serveur local sur [http://localhost:3000](http://localhost:3000). Ouvrez cette adresse dans votre navigateur, et vous devriez voir le "Hello, World" d'Astro.
38+
Astro va lancer un serveur local sur [http://localhost:4321](http://localhost:4321). Ouvrez cette adresse dans votre navigateur, et vous devriez voir le "Hello, World" d'Astro.
3939

4040
Vous n'avez jamais besoin de redémarrer Astro : à chaque modification dans le dossier `src/`, le serveur recompile votre site.
4141

old-translations/hu/installation.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Következő lépésben lecserélheted az ideiglenes "scripts" szekciót a `packa
9999
}
100100
```
101101

102-
A [`dev`](#start-astro) parancs elindítja az Astro Fejlesztői Szerverét a `http://localhost:3000` címen. Amikor a projekted elkészül a [`build`](#build-astro) parancs megépíti a projektedet a `dist/` mappába. [Az Astro kiépítéséről többet olvashatsz a Kiépítési útmutatónkban.](/en/guides/deploy)
102+
A [`dev`](#start-astro) parancs elindítja az Astro Fejlesztői Szerverét a `http://localhost:4321` címen. Amikor a projekted elkészül a [`build`](#build-astro) parancs megépíti a projektedet a `dist/` mappába. [Az Astro kiépítéséről többet olvashatsz a Kiépítési útmutatónkban.](/en/guides/deploy)
103103

104104
### Hozd létre az első oldalad
105105

@@ -145,7 +145,7 @@ Létrehozhatsz több oldalt az `src/pages` mappában. Az Astro a fájlok nevét
145145
npm run dev
146146
```
147147

148-
Az Astro mostantól a `http://localhost:3000` címen futtatja az alkalmazásodat. Ha megnyitod ezt a linket a böngésződben, látnod kell az Astro "Hello, World" mintaprogramját.
148+
Az Astro mostantól a `http://localhost:4321` címen futtatja az alkalmazásodat. Ha megnyitod ezt a linket a böngésződben, látnod kell az Astro "Hello, World" mintaprogramját.
149149

150150
Ha meg kell osztanod a helyi hálózaton, hogy hogyan halad a fejlesztés, vagy megnéznéd a mobilodról, csak add hozzá a következő opciót az `astro.config.mjs` fájlhoz:
151151

old-translations/hu/quick-start.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ A projekted mappájában, írd be az alábbi parancsot a terminálba:
4040
npm run dev
4141
```
4242

43-
Mostantól az Astro alkalmazásod elérhető a [http://localhost:3000](http://localhost:3000) címen. Ha megnyitod ezt a címet a böngésződben, látnod kell az Astro saját "Hello, World"-jét.
43+
Mostantól az Astro alkalmazásod elérhető a [http://localhost:4321](http://localhost:4321) címen. Ha megnyitod ezt a címet a böngésződben, látnod kell az Astro saját "Hello, World"-jét.
4444

4545
A szerver autómatikusan figyeli az `src/` mappában történő változásokat, így nem kell újraindítanod az alkalmazást ha bármit módosítasz.
4646

old-translations/ja/installation.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ npm install astro
100100
}
101101
```
102102

103-
[`dev`](#astro-の開始)コマンドは、Astro Dev Server(`http://localhost:3000`)を起動します。プロジェクトの準備ができたら、[`build`](#astro-のビルド)コマンドで、プロジェクトを`dist/`ディレクトリに出力します。Astro のデプロイについては、[デプロイガイド](/guides/deploy)をご覧ください。
103+
[`dev`](#astro-の開始)コマンドは、Astro Dev Server(`http://localhost:4321`)を起動します。プロジェクトの準備ができたら、[`build`](#astro-のビルド)コマンドで、プロジェクトを`dist/`ディレクトリに出力します。Astro のデプロイについては、[デプロイガイド](/guides/deploy)をご覧ください。
104104

105105
### 最初のページを作る
106106

@@ -146,7 +146,7 @@ console.log('これはターミナルに表示されます')
146146
npm run dev
147147
```
148148

149-
これで Astro は、`http://localhost:3000`でアプリケーションのサービスを開始します。この URL をブラウザで開くと、Astro の「Hello, World」が表示されるはずです。
149+
これで Astro は、`http://localhost:4321`でアプリケーションのサービスを開始します。この URL をブラウザで開くと、Astro の「Hello, World」が表示されるはずです。
150150

151151
開発の進捗状況をローカルネットワーク上で共有したり、スマートフォンからアプリを確認したければ、以下の オプションを`astro.config.mjs`に追加してください。
152152

old-translations/ja/quick-start.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ npm run build
3737
npm run dev
3838
```
3939

40-
これで Astro は、 [http://localhost:3000](http://localhost:3000)で、アプリケーションの提供を開始します。この URL をブラウザで開くと、Astro の「Hello, World」が表示されるはずです。
40+
これで Astro は、 [http://localhost:4321](http://localhost:4321)で、アプリケーションの提供を開始します。この URL をブラウザで開くと、Astro の「Hello, World」が表示されるはずです。
4141

4242
サーバーは、あなたの`src/`ディレクトリにあるファイルの変更を常に監視しているので、開発中に変更してもアプリケーションを再起動する必要はありません。
4343

old-translations/nl/quick-start.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Navigeer naar je project folder, en voer het volgende commando uit in je termina
3838
npm run dev
3939
```
4040

41-
Astro start nu je applicatie op, je kan deze vinden op [http://localhost:3000](http://localhost:3000). Als je deze URL opent zie je de Astro versie van "Hello, World".
41+
Astro start nu je applicatie op, je kan deze vinden op [http://localhost:4321](http://localhost:4321). Als je deze URL opent zie je de Astro versie van "Hello, World".
4242

4343
De server luistert naar live wijzifgingen in je `src/` folder, dus je hoeft de applicatie niet handmatig te herstarten bij elke wijziging tijdens de ontwikkeling.
4444

old-translations/ru/quick-start.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ npm run build
3737
npm run dev
3838
```
3939

40-
Astro запустит сервер для разработки по адресу [http://localhost:3000](http://localhost:3000). При открытии этого URL в вашем браузере, вы должны увидеть "Hello, World" от Astro.
40+
Astro запустит сервер для разработки по адресу [http://localhost:4321](http://localhost:4321). При открытии этого URL в вашем браузере, вы должны увидеть "Hello, World" от Astro.
4141

4242
Сервер будет следить за изменениями в директории `src/`, значит вам не нужно будет перезапускать сервер каждый раз после внесения изменений.
4343

old-translations/zh-CN/installation.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ npm install astro
102102
}
103103
```
104104

105-
[`dev`](#start-dev) 命令在 `http://localhost:3000` 上启动 Astro 开发服务器。一旦你的项目准备好了。
105+
[`dev`](#start-dev) 命令在 `http://localhost:4321` 上启动 Astro 开发服务器。一旦你的项目准备好了。
106106

107107
[`build`](#build-astro)命令将你的项目输出到 `dist/` 目录。[在部署指南中阅读更多关于部署 Astro 的内容。](/guides/deploy)
108108

@@ -149,7 +149,7 @@ console.log('See me in the Terminal')
149149
npm run dev
150150
```
151151

152-
Astro 会开启预览服务器,地址为 [http://localhost:3000](http://localhost:3000)
152+
Astro 会开启预览服务器,地址为 [http://localhost:4321](http://localhost:4321)
153153
在浏览器打开这个网址,就会看到 Astro 的 HelloWorld 页面
154154

155155
服务器会实时监听 'src/' 目录下的文件改动,所以在开发过程的支持热更新,修改程序后,无需重启。

old-translations/zh-CN/quick-start.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ npm run build
3535
npm run dev
3636
```
3737

38-
Astro 会开启预览服务器,地址为 [http://localhost:3000](http://localhost:3000)
38+
Astro 会开启预览服务器,地址为 [http://localhost:4321](http://localhost:4321)
3939
在浏览器打开这个网址,就会看到 Astro 的 HelloWorld 页面
4040

4141
服务器会实时监听 'src/' 目录下的文件改动,所以在开发过程的支持热更新,修改程序后,无需重启。

old-translations/zh-TW/installation.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ npm install astro
9898
}
9999
```
100100

101-
[`dev`](#start-astro) 指令在 `http://localhost:3000` 啟動 Astro 開發伺服器。一但專案已經準備好,[`build`](#build-astro) 指令將專案輸出至 `dist/` 資料夾。[在「部署指南」深入閱讀部署 Astro](/guides/deploy)
101+
[`dev`](#start-astro) 指令在 `http://localhost:4321` 啟動 Astro 開發伺服器。一但專案已經準備好,[`build`](#build-astro) 指令將專案輸出至 `dist/` 資料夾。[在「部署指南」深入閱讀部署 Astro](/guides/deploy)
102102

103103
### 建立第一個頁面
104104

@@ -144,7 +144,7 @@ console.log('See me in the Terminal')
144144
npm run dev
145145
```
146146

147-
Astro 會為應用程式打開 `http://localhost:3000` 的伺服器。在瀏覽器開啟網址,就會看到 Astro 的「Hello World」。
147+
Astro 會為應用程式打開 `http://localhost:4321` 的伺服器。在瀏覽器開啟網址,就會看到 Astro 的「Hello World」。
148148

149149
## [Build Astro](#build-astro)
150150

old-translations/zh-TW/quick-start.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ npm run build
3535
npm run dev
3636
```
3737

38-
現在,Astro 就會開啟應用程式的伺服器,位置是 [http://localhost:3000](http://localhost:3000)。在瀏覽器打開這網址,就會看到 Astro 的 「Hello, World」。
38+
現在,Astro 就會開啟應用程式的伺服器,位置是 [http://localhost:4321](http://localhost:4321)。在瀏覽器打開這網址,就會看到 Astro 的 「Hello, World」。
3939

4040
伺服器會即時監聽 `src/` 資料夾的檔案異動,所以在開發過程的更新毋需重新啟動應用程式。
4141

src/content/docs/de/guides/deploy/google-cloud.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ RUN pnpm run build
6969

7070
##### Dockerfile für SSR-Websites (Beispiel)
7171

72-
Das folgende Dockerfile erstellt deine Website und stellt sie mit Node.js (SSR-Adapter) auf Port `3000` bereit.
72+
Das folgende Dockerfile erstellt deine Website und stellt sie mit Node.js (SSR-Adapter) auf Port `4321` bereit.
7373

7474
```docker title="Dockerfile"
7575
FROM node:lts AS runtime
@@ -81,8 +81,8 @@ RUN npm install
8181
RUN npm run build
8282
8383
ENV HOST=0.0.0.0
84-
ENV PORT=3000
85-
EXPOSE 3000
84+
ENV PORT=4321
85+
EXPOSE 4321
8686
CMD node ./dist/server/entry.mjs
8787
```
8888

src/content/docs/de/guides/markdown-content.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Astro behandelt jede `.md`-Datei innerhalb des Verzeichnisses `/src/pages` als e
1313

1414
### Einfaches Beispiel
1515

16-
Der einfachste Einstieg in die Verwendung von Markdown mit Astro besteht darin, die Datei `src/pages/index.md` als Startseiten-Route für dein Projekt zu erstellen. Kopiere dann den untenstehenden Beispielinhalt in die Datei und sieh dir den gerenderten HTML-Code auf der Startseite deines Projekts an. Du findest sie normalerweise unter [http://localhost:3000/](http://localhost:3000/).
16+
Der einfachste Einstieg in die Verwendung von Markdown mit Astro besteht darin, die Datei `src/pages/index.md` als Startseiten-Route für dein Projekt zu erstellen. Kopiere dann den untenstehenden Beispielinhalt in die Datei und sieh dir den gerenderten HTML-Code auf der Startseite deines Projekts an. Du findest sie normalerweise unter [http://localhost:4321/](http://localhost:4321/).
1717

1818
```markdown
1919
---

src/content/docs/de/guides/testing.mdx

+4-4
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ Alternativ kannst du Playwright in deinem Astro-Projekt mit dem von dir gewählt
5757

5858
```jsx title="src/test/index.spec.ts" "Astro ist fantastisch!"
5959
test('Metadaten sind korrekt', async ({ page }) => {
60-
await page.goto("http://localhost:3000/");
60+
await page.goto("http://localhost:4321/");
6161

6262
await expect(page).toHaveTitle('Astro ist fantastisch!');
6363
});
6464
```
6565

6666
:::tip[Eine Basis-URL setzen]
67-
Du kannst [`"baseURL": "http://localhost:3000"`](https://playwright.dev/docs/api/class-testoptions#test-options-base-url) in der `playwright.config.ts`-Konfigurationsdatei setzen, um `page.goto("/")` anstatt `page.goto("http://localhost:3000/")` als komfortablere URL zu nutzen.
67+
Du kannst [`"baseURL": "http://localhost:4321"`](https://playwright.dev/docs/api/class-testoptions#test-options-base-url) in der `playwright.config.ts`-Konfigurationsdatei setzen, um `page.goto("/")` anstatt `page.goto("http://localhost:4321/")` als komfortablere URL zu nutzen.
6868
:::
6969

7070
### Deine Playwright-Tests ausführen
@@ -100,12 +100,12 @@ import type { PlaywrightTestConfig } from '@playwright/test';
100100
const config: PlaywrightTestConfig = {
101101
webServer: {
102102
command: 'yarn preview',
103-
url: 'http://localhost:3000/app/',
103+
url: 'http://localhost:4321/app/',
104104
timeout: 120 * 1000,
105105
reuseExistingServer: !process.env.CI,
106106
},
107107
use: {
108-
baseURL: 'http://localhost:3000/app/',
108+
baseURL: 'http://localhost:4321/app/',
109109
},
110110
};
111111
export default config;

src/content/docs/de/install/auto.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ yarn run dev
6262
pnpm run dev
6363
```
6464

65-
Wenn alles gut geht, sollte dein Astro-Projekt jetzt unter [http://localhost:3000/](http://localhost:3000/) aufrufbar sein!
65+
Wenn alles gut geht, sollte dein Astro-Projekt jetzt unter [http://localhost:4321/](http://localhost:4321/) aufrufbar sein!
6666

6767
Astro überwacht zur Laufzeit alle Dateien im Verzeichnis `src/`, sodass du den Server nicht neu starten musst, wenn du während der Entwicklung Änderungen vornimmst.
6868

src/content/docs/de/reference/configuration-reference.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ Um unterschiedliche Konfigurationen auf der Grundlage des ausgeführten Befehls
200200
{
201201
// Beispiel: Verwende die Funktionssyntax, um Anpassungen
202202
// auf der Grundlage des ausgeführten Befehls vorzunehmen
203-
server: (command) => ({ port: command === 'dev' ? 3000 : 4000 })
203+
server: (command) => ({ port: command === 'dev' ? 4321 : 4000 })
204204
}
205205
```
206206

@@ -224,7 +224,7 @@ Legt fest, unter welchen Netzwerk-IP-Adressen der Entwicklungsserver erreichbar
224224
<p>
225225

226226
**Typ:** `number`<br />
227-
**Standard:** `3000`
227+
**Standard:** `4321`
228228
</p>
229229

230230
Legt fest, unter welchem Port der Entwicklungsserver erreichbar sein soll.

0 commit comments

Comments
 (0)