-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
37 lines (37 loc) · 1015 Bytes
/
astro.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import { defineConfig } from 'astro/config';
import cloudflare from "@astrojs/cloudflare";
import tailwind from "@astrojs/tailwind";
import sitemap from '@astrojs/sitemap';
import icon from "astro-icon";
const website = 'https://barab.me';
// https://astro.build/config
export default defineConfig({
site: website,
prefetch: true,
output: "server",
adapter: cloudflare({
platformProxy: {
enabled: true
},
imageService: 'passthrough',
}),
vite: {
build: {
minify: false,
},
define: {
'import.meta.env.BUILD_DATE': JSON.stringify(new Date().toISOString().split('T')[0]),
"process.env": process.env,
},
},
integrations: [tailwind({
// Example: Disable injecting a basic `base.css` import on every page.
// Useful if you need to define and/or import your own custom `base.css`.
applyBaseStyles: false,
}),
sitemap({
filter: (page) => page !== `${website}/thanks-for-contact/`,
lastmod: new Date(Date.now()),
}),
icon()]
});