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