This repository has been archived on 2024-12-04. You can view files and clone it, but cannot push or open issues or pull requests.
MinPluto-Frontend/source/astro.mjs
2024-09-15 03:47:11 -04:00

49 lines
No EOL
1 KiB
JavaScript
Executable file

import { defineConfig } from 'astro/config'
import vue from '@astrojs/vue'
import astroI18next from "astro-i18next"
import mdx from '@astrojs/mdx'
import bun from "@nurodev/astro-bun";
// https://astro.build/config
export default defineConfig({
// Project Structure
cacheDir: './.minpluto/generated/astro/cache/',
outDir: './.minpluto/generated/astro/dist/',
publicDir: './source/src/public',
root: './source',
srcDir: './source/src',
// Integrations and Plugins
integrations: [mdx(), vue(), astroI18next()],
// Security
security: {
checkOrigin: true
},
// Server Options
server: {
port: 1930,
host: true
},
// Use Server-Side Rendering
output: 'server',
adapter: bun(),
// Vite
vite: {
server: {
hmr: true // Auto Reload
}
},
// Experimental
experimental: {
directRenderScript: true,
clientPrerender: true,
serverIslands: true
},
prefetch: {
prefetchAll: true,
defaultStrategy: "viewport"
},
// Others
devToolbar: {
enabled: false
}
})