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
1,019 B
JavaScript
Raw Permalink Normal View History

2024-09-03 02:30:12 -04:00
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/',
2024-09-03 02:30:12 -04:00
// Integrations
integrations: [mdx(), vue()],
// Server
server: {
port: 1930,
host: true
},
// Use Server-Side Rendering
adapter: bun(),
2024-09-03 03:12:05 -04:00
output: 'server',
2024-09-03 02:30:12 -04:00
// Experimental
experimental: {
clientPrerender: true,
directRenderScript: true,
serverIslands: true
},
prefetch: {
prefetchAll: true,
defaultStrategy: "viewport"
},
// Security and Other Options
2024-09-03 03:12:05 -04:00
devToolbar: {enabled: false},
security: {checkOrigin: true},
vite: {server: {hmr: false}}
2024-09-03 02:30:12 -04:00
})