-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.ts
More file actions
37 lines (36 loc) · 1.26 KB
/
astro.config.ts
File metadata and controls
37 lines (36 loc) · 1.26 KB
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 sitemap from "@astrojs/sitemap";
import tailwindcss from "@tailwindcss/vite";
import compressor from "astro-compressor";
import { defineConfig, envField } from "astro/config";
// https://astro.build/config
export default defineConfig({
build: { assets: "assets", format: "file" },
devToolbar: { enabled: false },
env: {
schema: {
SITE_URL: envField.string({ context: "client", access: "public", optional: false, url: true }),
CDN_URL: envField.string({ context: "client", access: "public", optional: false, url: true }),
DOMAIN_NAME: envField.string({ context: "client", access: "public", optional: false }),
},
},
integrations: [
sitemap({
customSitemaps: [
"https://pub.xenitane.xyz/sitemap-index.xml",
"https://project.xenitane.xyz/sitemap-index.xml",
"https://exhibit.xenitane.xyz/sitemap-index.xml",
],
}),
compressor(),
],
output: "static",
server({ command }) {
return {
host: "0.0.0.0",
port: 4173 + ("dev" === command ? 1000 : 0),
};
},
site: "https://www.xenitane.xyz",
trailingSlash: "never",
vite: { plugins: [tailwindcss()] },
});