49 lines
No EOL
1 KiB
JavaScript
Executable file
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
|
|
}
|
|
}) |