2024-11-12 14:20:33 -05:00
|
|
|
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
|
|
|
|
2024-11-12 14:20:33 -05:00
|
|
|
// Settings
|
|
|
|
import { SiteSettings } from './config.json'
|
2024-06-06 17:51:07 -04:00
|
|
|
|
2024-06-05 20:48:11 -04:00
|
|
|
// Integrations
|
2024-11-12 14:20:33 -05:00
|
|
|
import mdx from '@astrojs/mdx'
|
2024-11-14 23:52:50 -05:00
|
|
|
import pagefind from "astro-pagefind"
|
2024-06-05 20:48:11 -04:00
|
|
|
|
2024-12-22 23:20:40 -05:00
|
|
|
import compressor from 'astro-compressor';
|
|
|
|
|
|
|
|
import pageInsight from 'astro-page-insight';
|
|
|
|
|
2024-11-12 14:20:33 -05:00
|
|
|
// Astro Configuration
|
2024-06-05 20:48:11 -04:00
|
|
|
export default defineConfig({
|
2024-12-22 23:20:40 -05:00
|
|
|
// Top Level
|
|
|
|
compressHTML: true,
|
2024-06-07 03:15:10 -04:00
|
|
|
// Information
|
2024-11-12 14:20:33 -05:00
|
|
|
site: SiteSettings.SiteProtocol + '://' + SiteSettings.SiteDomain,
|
|
|
|
base: SiteSettings.SiteBase,
|
2024-06-07 03:15:10 -04:00
|
|
|
// Integrations
|
2024-12-22 23:20:40 -05:00
|
|
|
integrations: [mdx(), pagefind(), vue(), compressor(), pageInsight()],
|
|
|
|
markdown: {
|
|
|
|
syntaxHighlight: 'prism'
|
|
|
|
},
|
|
|
|
// Build
|
|
|
|
build: {
|
|
|
|
concurrency: 2
|
|
|
|
},
|
|
|
|
cacheDir: './dist-cache/',
|
2024-06-07 03:15:10 -04:00
|
|
|
// 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
|
|
|
|
},
|
2024-06-07 03:15:10 -04:00
|
|
|
// Others
|
2024-06-05 20:48:11 -04:00
|
|
|
devToolbar: {
|
|
|
|
enabled: false
|
|
|
|
}
|
2024-11-12 14:20:33 -05:00
|
|
|
})
|