Add server configuration to Astro setup for external access

- Introduce server settings in astro.config.ts to specify port 3000 and enable external access.
- This change enhances the development environment by allowing connections from outside the local network.
This commit is contained in:
2025-06-07 01:17:07 +02:00
parent 0893e235c2
commit a56bc83d59

View File

@@ -25,7 +25,11 @@ const whenExternalScripts = (items: (() => AstroIntegration) | (() => AstroInteg
export default defineConfig({
output: 'server',
adapter: node({ mode: 'standalone' }),
server: {
port: 3000,
host: true, // Allows external access if needed
},
i18n: {
locales: ["en", "de", "nl", "fr"],