butterflyvu/astro.config.mjs

46 lines
1 KiB
JavaScript
Raw Normal View History

2024-06-05 19:48:11 -05:00
import { defineConfig } from 'astro/config';
// Environment Variables
import {
SITE_PROTOCOL,
SITE_DOMAIN,
SITE_BASE
} from './src/utils/GetConfig'
2024-06-06 16:51:07 -05:00
2024-06-05 19:48:11 -05:00
// Adapters
import node from '@astrojs/node';
// Integrations
import keystatic from '@keystatic/astro';
import mdx from '@astrojs/mdx';
import partytown from '@astrojs/partytown';
import react from '@astrojs/react';
2024-06-05 19:48:11 -05:00
export default defineConfig({
// Information
2024-06-06 16:51:07 -05:00
site: SITE_PROTOCOL + '://' + SITE_DOMAIN,
base: SITE_BASE,
// Integrations
integrations: [
mdx(),
partytown(),
react(),
// Disable Keystatic in production
// https://keystatic.com/docs/recipes/astro-disable-admin-ui-in-production
...(process.env.SKIP_KEYSTATIC ? [] : [keystatic()])
],
// Server Output
2024-06-05 19:48:11 -05:00
output: "hybrid",
prefetch: true,
adapter: node({
mode: 'standalone',
}),
server: {
port: 2014,
host: true
},
// Others
2024-06-05 19:48:11 -05:00
devToolbar: {
enabled: false
}
});