1
Fork 0
This repository has been archived on 2025-04-18. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Frontend-Project/web/astro.js
2024-09-03 02:30:12 -04:00

46 lines
No EOL
1.1 KiB
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/src/public',
root: './web',
srcDir: './web/src',
// Integrations
integrations: [mdx(), vue()],
// Server
server: {
port: 1930,
host: true
},
// Use Server-Side Rendering
output: 'server',
adapter: bun(),
// 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 // Auto Reload
}
}
})