Skip to content

Commit 448f3a9

Browse files
committed
chore: Modify SITE_URL in Astro configuration to dynamically set based on NODE_ENV for improved local and production environment handling
1 parent 73b4674 commit 448f3a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

astro.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import vercel from '@astrojs/vercel';
55
import tailwindcss from '@tailwindcss/vite';
66
import { defineConfig } from 'astro/config';
77

8-
const SITE_URL = process.env.VERCEL_URL
8+
const SITE_URL = process.env.NODE_ENV === 'production'
99
? `https://icon-sets-generator.vercel.app`
1010
: 'http://localhost:4321';
1111

0 commit comments

Comments
 (0)