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
2024-08-09 00:59:01 -04:00

41 lines
No EOL
871 B
JavaScript
Executable file

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'
// https://astro.build/config
export default defineConfig({
// Project Structure
cacheDir: './.minpluto/generated/astro/cache/',
outDir: './.minpluto/generated/astro/dist/',
publicDir: './source/src/public',
root: './source',
srcDir: './source/src',
// Integrations and Plugins
integrations: [mdx(), vue(), astroI18next()],
// Security
security: {
checkOrigin: true
},
// Server Options
server: {
port: 1930,
host: true
},
// Use Server-Side Rendering
output: 'server',
adapter: node({
mode: 'standalone'
}),
// Vite
vite: {
server: {
hmr: true // Auto Reload
}
},
// Others
devToolbar: {
enabled: false
}
})