1
0
Fork 0
mirror of https://ark.sudovanilla.org/Korbs/butterflyvu.git synced 2024-12-22 15:23:54 +00:00
butterflyvu/astro.config.mjs
2024-09-17 23:07:39 -04:00

47 lines
1 KiB
JavaScript
Executable file

import { defineConfig } from 'astro/config';
import vue from '@astrojs/vue';
// Environment Variables
import {
SITE_PROTOCOL,
SITE_DOMAIN,
SITE_BASE
} from './src/utils/GetConfig'
// 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';
export default defineConfig({
// Information
site: SITE_PROTOCOL + '://' + SITE_DOMAIN,
base: SITE_BASE,
// Integrations
integrations: [
mdx(),
partytown(),
vue(),
// Disable Keystatic in production
// https://keystatic.com/docs/recipes/astro-disable-admin-ui-in-production
...(process.env.SKIP_KEYSTATIC ? [] : [keystatic()])
],
// Server Output
output: "hybrid",
prefetch: true,
adapter: node({
mode: 'standalone',
}),
server: {
port: 2014,
host: true
},
// Others
devToolbar: {
enabled: false
}
});