-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
40 lines (38 loc) · 1.17 KB
/
astro.config.mjs
File metadata and controls
40 lines (38 loc) · 1.17 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
38
39
40
import { defineConfig } from 'astro/config';
import UnoCSS from 'unocss/astro';
import node from "@astrojs/node";
import react from "@astrojs/react";
import alpinejs from "@astrojs/alpinejs";
import { presetDaisy } from 'unocss-preset-daisy';
import presetUno from '@unocss/preset-uno';
import transformerDirectives from '@unocss/transformer-directives';
import presetWebFonts from '@unocss/preset-web-fonts';
import vercel from "@astrojs/vercel/serverless";
import rome from "astro-rome";
// https://astro.build/config
export default defineConfig({
integrations: [UnoCSS({
transformers: [transformerDirectives()],
presets: [presetUno(), presetDaisy(), presetWebFonts({
provider: 'google',
// default provider
fonts: {
// these will extend the default theme
sans: 'Roboto',
mono: ['Fira Code', 'Fira Mono:400,700'],
// custom ones
lobster: 'Lobster',
lato: [{
name: 'Lato',
weights: ['400', '700'],
italic: true
}, {
name: 'sans-serif',
provider: 'none'
}]
}
})]
}), react(), alpinejs(), rome()],
output: "server",
adapter: vercel()
});