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