2024-10-22 16:45:20 -05:00
|
|
|
import { defineConfig } from 'astro/config'
|
|
|
|
import vue from '@astrojs/vue'
|
|
|
|
import astroI18next from "astro-i18next"
|
|
|
|
import bun from "@nurodev/astro-bun"
|
|
|
|
|
|
|
|
// https://astro.build/config
|
|
|
|
export default defineConfig({
|
|
|
|
// Project Structure
|
2024-10-25 13:51:17 -05:00
|
|
|
cacheDir: './.zarro/generated/astro/cache/',
|
|
|
|
outDir: './.zarro/generated/astro/dist/',
|
2024-10-22 16:45:20 -05:00
|
|
|
publicDir: './source/src/public',
|
|
|
|
root: './source',
|
|
|
|
srcDir: './source/src',
|
|
|
|
// Integrations and Plugins
|
|
|
|
integrations: [vue(), astroI18next()],
|
|
|
|
// Security
|
|
|
|
security: {
|
|
|
|
checkOrigin: true
|
|
|
|
},
|
|
|
|
// Server Options
|
|
|
|
server: {
|
2024-10-22 23:15:59 -05:00
|
|
|
port: 1550,
|
2024-10-22 16:45:20 -05:00
|
|
|
host: true
|
|
|
|
},
|
|
|
|
// Use Server-Side Rendering
|
|
|
|
output: 'server',
|
|
|
|
adapter: bun(),
|
|
|
|
// Vite
|
|
|
|
vite: {
|
|
|
|
server: {
|
|
|
|
hmr: true // Auto Reload
|
|
|
|
}
|
|
|
|
},
|
|
|
|
// Experimental
|
|
|
|
experimental: {},
|
|
|
|
// Others
|
|
|
|
devToolbar: {
|
|
|
|
enabled: false
|
|
|
|
}
|
|
|
|
})
|