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.mjs

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}}
})