Skip to content

Commit

Permalink
Update Astro configuration to use dynamic server port from config
Browse files Browse the repository at this point in the history
  • Loading branch information
Luisotee committed Jan 21, 2025
1 parent 9e71e0e commit ccb0577
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion apps/docs/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import starlight from "@astrojs/starlight";
import { config } from "@eda/config";
// @ts-check
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";

// https://astro.build/config
export default defineConfig({
server: {
port: config.ports.docs,
host: false,
},
integrations: [
starlight({
title: "My Docs",
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "astro dev --port 8082",
"dev": "astro dev",
"start": "astro dev",
"build": "astro check && astro build",
"preview": "astro preview",
Expand Down

0 comments on commit ccb0577

Please sign in to comment.