38 lines
No EOL
1,019 B
JavaScript
38 lines
No EOL
1,019 B
JavaScript
import { defineConfig } from "astro/config"
|
|
import bun from '@nurodev/astro-bun'
|
|
import mdx from '@astrojs/mdx'
|
|
import vue from '@astrojs/vue'
|
|
|
|
// References: https://docs.astro.build/en/reference/configuration-reference/
|
|
export default defineConfig({
|
|
// Project Structure
|
|
cacheDir: './.minpluto/generated/astro/cache/',
|
|
outDir: './.minpluto/generated/astro/dist/',
|
|
publicDir: './web/public/',
|
|
root: './web/',
|
|
srcDir: './web/',
|
|
// Integrations
|
|
integrations: [mdx(), vue()],
|
|
// Server
|
|
server: {
|
|
port: 1930,
|
|
host: true
|
|
},
|
|
// Use Server-Side Rendering
|
|
adapter: bun(),
|
|
output: 'server',
|
|
// Experimental
|
|
experimental: {
|
|
clientPrerender: true,
|
|
directRenderScript: true,
|
|
serverIslands: true
|
|
},
|
|
prefetch: {
|
|
prefetchAll: true,
|
|
defaultStrategy: "viewport"
|
|
},
|
|
// Security and Other Options
|
|
devToolbar: {enabled: false},
|
|
security: {checkOrigin: true},
|
|
vite: {server: {hmr: false}}
|
|
}) |