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

41 lines
872 B
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'
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: node({
2024-07-24 14:53:15 -05:00
mode: 'standalone'
2024-04-14 22:56:13 -05:00
}),
2024-07-24 14:53:15 -05:00
// Vite
vite: {
server: {
hmr: false // Auto Reload
}
},
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
})