11import react from "@astrojs/react" ;
22import starlight from "@astrojs/starlight" ;
3- import tailwind from "@astrojs/tailwind " ;
4- import { defineConfig } from "astro/config" ;
3+ import tailwindcss from "@tailwindcss/vite " ;
4+ import { defineConfig , envField } from "astro/config" ;
55
66// https://astro.build/config
77const defaultDomain = process . env . ZANE_DOMAINS ?. split ( "," ) [ 0 ] ?? "zaneops.dev" ;
88export default defineConfig ( {
99 site : `https://${ defaultDomain } ` ,
10+
11+ env : {
12+ schema : {
13+ ASSETS_SERVER_DOMAIN : envField . string ( {
14+ context : "client" ,
15+ access : "public" ,
16+ url : true ,
17+ default : "https://assets.zaneops.dev"
18+ } )
19+ }
20+ } ,
21+
1022 devToolbar : {
1123 enabled : false
1224 } ,
25+
1326 integrations : [
1427 starlight ( {
1528 title : "ZaneOps documentation" ,
@@ -22,14 +35,21 @@ export default defineConfig({
2235 baseUrl : "https://github.com/zane-ops/docs/edit/main/"
2336 } ,
2437 customCss : [
25- "./src/tailwind.css" ,
26- "./src/assets/theme.css" ,
38+ "./src/assets/global.css" ,
2739 "./src/assets/fonts/font-face.css"
2840 ] ,
29- social : {
30- github : "https://github.com/zane-ops/zane-ops" ,
31- discord : "https://discord.gg/DUdz2vrh9y"
32- } ,
41+ social : [
42+ {
43+ label : "Github" ,
44+ icon : "github" ,
45+ href : "https://github.com/zane-ops/zane-ops"
46+ } ,
47+ {
48+ label : "Discord" ,
49+ icon : "discord" ,
50+ href : "https://zaneops.dev/discord"
51+ }
52+ ] ,
3353 components : {
3454 Footer : "./src/components/Footer.astro" ,
3555 Head : "./src/components/Head.astro"
@@ -104,9 +124,11 @@ export default defineConfig({
104124 }
105125 ]
106126 } ) ,
107- tailwind ( {
108- applyBaseStyles : false
109- } ) ,
127+
110128 react ( )
111- ]
129+ ] ,
130+
131+ vite : {
132+ plugins : [ tailwindcss ( ) ]
133+ }
112134} ) ;
0 commit comments