+4
-1
astro.config.mjs
+4
-1
astro.config.mjs
···
2
2
import { defineConfig } from 'astro/config';
3
3
import mdx from '@astrojs/mdx';
4
4
import sitemap from '@astrojs/sitemap';
5
+
import dotenv from 'dotenv';
5
6
6
7
import svelte from '@astrojs/svelte';
7
8
9
+
dotenv.config();
10
+
8
11
// https://astro.build/config
9
12
export default defineConfig({
10
-
site: import.meta.env.ENVIRONMENT === 'production' ? 'https://claycow.com' : 'https://preview.claycow.com',
13
+
site: process.env.ENVIRONMENT === 'production' ? 'https://claycow.com' : 'https://preview.claycow.com',
11
14
integrations: [mdx(), sitemap(), svelte()],
12
15
image: {
13
16
domains: ["cdn.bsky.app", "i.imgur.com"],
+14
package-lock.json
+14
package-lock.json
···
22
22
"typescript": "^5.7.2"
23
23
},
24
24
"devDependencies": {
25
+
"dotenv": "^16.4.7",
25
26
"exiftool-vendored": "^29.2.0",
26
27
"sharp": "^0.33.5"
27
28
}
···
1878
1879
"integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==",
1879
1880
"license": "MIT"
1880
1881
},
1882
+
"node_modules/dotenv": {
1883
+
"version": "16.4.7",
1884
+
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.7.tgz",
1885
+
"integrity": "sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==",
1886
+
"dev": true,
1887
+
"license": "BSD-2-Clause",
1888
+
"engines": {
1889
+
"node": ">=12"
1890
+
},
1891
+
"funding": {
1892
+
"url": "https://dotenvx.com"
1893
+
}
1894
+
},
1881
1895
"node_modules/dset": {
1882
1896
"version": "3.1.4",
1883
1897
"resolved": "https://registry.npmjs.org/dset/-/dset-3.1.4.tgz",
+1
package.json
+1
package.json