update
This commit is contained in:
parent
6c24e3a5e0
commit
f608a91730
31 changed files with 2766 additions and 0 deletions
46
web/astro.js
Normal file
46
web/astro.js
Normal file
|
@ -0,0 +1,46 @@
|
|||
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/src/public',
|
||||
root: './web',
|
||||
srcDir: './web/src',
|
||||
// Integrations
|
||||
integrations: [mdx(), vue()],
|
||||
// Server
|
||||
server: {
|
||||
port: 1930,
|
||||
host: true
|
||||
},
|
||||
// Use Server-Side Rendering
|
||||
output: 'server',
|
||||
adapter: bun(),
|
||||
// Experimental
|
||||
experimental: {
|
||||
clientPrerender: true,
|
||||
directRenderScript: true,
|
||||
serverIslands: true
|
||||
},
|
||||
prefetch: {
|
||||
prefetchAll: true,
|
||||
defaultStrategy: "viewport"
|
||||
},
|
||||
// Security and Other Options
|
||||
devToolbar: {
|
||||
enabled: false
|
||||
},
|
||||
security: {
|
||||
checkOrigin: true
|
||||
},
|
||||
vite: {
|
||||
server: {
|
||||
hmr: false // Auto Reload
|
||||
}
|
||||
}
|
||||
})
|
Reference in a new issue