butterflyvu/astro.config.mjs

41 lines
950 B
JavaScript
Raw Normal View History

import { defineConfig } from 'astro/config'
2024-12-21 18:24:27 -05:00
import vue from "@astrojs/vue"
2024-06-05 20:48:11 -04:00
// Settings
2025-01-23 01:47:04 -05:00
import { SiteSettings } from './config.json'
2024-06-06 17:51:07 -04:00
2024-06-05 20:48:11 -04:00
// Integrations
import mdx from '@astrojs/mdx'
2024-11-14 23:52:50 -05:00
import pagefind from "astro-pagefind"
import compressor from 'astro-compressor';
import pageInsight from 'astro-page-insight';
// Astro Configuration
2024-06-05 20:48:11 -04:00
export default defineConfig({
// Top Level
compressHTML: true,
// Information
site: SiteSettings.SiteProtocol + '://' + SiteSettings.SiteDomain,
base: SiteSettings.SiteBase,
// Integrations
integrations: [mdx(), pagefind(), vue(), compressor(), pageInsight()],
markdown: {
syntaxHighlight: 'prism'
},
// Build
build: {
concurrency: 2
},
cacheDir: './dist-cache/',
// Server Output
2024-11-12 17:03:52 -05:00
output: "static",
2024-06-05 20:48:11 -04:00
prefetch: true,
server: {
port: 2014,
host: true
},
// Others
2024-06-05 20:48:11 -04:00
devToolbar: {
enabled: false
}
})