📦 chore: update .cron-lock
swadhinbiswas committed 3 months ago
de6ba86
1 parent b899c67
commit de6ba86
2 files changed
+6 -2
Showing 2 changed files+6-2
▼.mimocode/.cron-lock
+1-1
| @@ -1 +1 @@ | ||
1 | -{"pid":5727,"startedAt":1784185065125} | |
1 | +{"pid":8618,"startedAt":1784441536749} | |
2 | 2 | |
▼astro.config.mjs
+5-1
| @@ -2,6 +2,10 @@ import node from "@astrojs/node"; | ||
2 | 2 | import react from "@astrojs/react"; |
3 | 3 | import { defineConfig } from "astro/config"; |
4 | 4 | import icon from "astro-icon"; |
5 | +import { loadEnv } from "vite"; | |
6 | + | |
7 | +// Load .env before config reads PORT | |
8 | +const env = loadEnv("development", process.cwd(), ""); | |
5 | 9 | |
6 | 10 | export default defineConfig({ |
7 | 11 | integrations: [ |
| @@ -13,7 +17,7 @@ export default defineConfig({ | ||
13 | 17 | mode: "standalone", |
14 | 18 | }), |
15 | 19 | server: { |
16 | - port: parseInt(process.env.PORT || "4321"), | |
20 | + port: parseInt(env.PORT || process.env.PORT || "4321"), | |
17 | 21 | host: true, |
18 | 22 | }, |
19 | 23 | vite: { |
20 | 24 | |