Skip to content

Commit 18ea392

Browse files
committed
Fix import from package.json in site url utility
1 parent eb55806 commit 18ea392

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/lib/config/siteUrlServer.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
* Server-side method to determine correct URL
33
*/
44
import { loadEnv } from 'vite'
5-
import { domain } from '../../../package.json' with { type: 'json' }
5+
import packageJson from '../../../package.json' with { type: 'json' }
66
import { isVercel } from './environmentServer'
77

8+
const { domain } = packageJson
89
const { DEV_SERVER_PORT } = loadEnv(process.env['NODE_ENV'] ?? 'development', process.cwd(), '')
910

1011
/** Called from astro.config.ts to determine "site" config key */

0 commit comments

Comments
 (0)