1
Fork 0
This repository has been archived on 2024-12-04. You can view files and clone it, but cannot push or open issues or pull requests.
MinPluto-Frontend/source/astro.mjs

50 lines
1 KiB
JavaScript
Raw Normal View History

2024-08-03 20:51:57 -05:00
import { defineConfig } from 'astro/config'
import node from '@astrojs/node'
import vue from '@astrojs/vue'
import astroI18next from "astro-i18next"
import mdx from '@astrojs/mdx'
import bun from "@nurodev/astro-bun";
2024-04-14 22:56:13 -05:00
2024-07-24 14:53:15 -05:00
// https://astro.build/config
2024-04-14 22:56:13 -05:00
export default defineConfig({
2024-07-07 19:04:25 -05:00
// Project Structure
2024-08-03 20:51:57 -05:00
cacheDir: './.minpluto/generated/astro/cache/',
outDir: './.minpluto/generated/astro/dist/',
publicDir: './source/src/public',
root: './source',
srcDir: './source/src',
2024-07-07 19:04:25 -05:00
// Integrations and Plugins
integrations: [mdx(), vue(), astroI18next()],
// Security
security: {
checkOrigin: true
2024-04-14 22:56:13 -05:00
},
2024-07-07 19:04:25 -05:00
// Server Options
server: {
port: 1930,
host: true
},
// Use Server-Side Rendering
2024-04-14 22:56:13 -05:00
output: 'server',
adapter: bun(),
2024-07-24 14:53:15 -05:00
// Vite
vite: {
server: {
2024-08-08 23:59:01 -05:00
hmr: true // Auto Reload
2024-07-24 14:53:15 -05:00
}
},
// Experimental
experimental: {
directRenderScript: true,
clientPrerender: true
},
prefetch: {
prefetchAll: true,
defaultStrategy: "viewport"
},
2024-07-07 19:04:25 -05:00
// Others
2024-07-24 14:53:15 -05:00
devToolbar: {
enabled: false
}
2024-08-03 20:51:57 -05:00
})