avior.me/astro.config.mjs
Florian Bouillon fe437165a1 feat: Add first version of website
Signed-off-by: Avior <github@avior.me>
2023-10-01 02:25:21 +02:00

45 lines
875 B
JavaScript

import { defineConfig } from 'astro/config'
import tailwind from "@astrojs/tailwind"
import node from "@astrojs/node"
// const faviconHook = {
// name: 'Favicon',
// hooks: {
// "astro:build:setup": async () => {
// await Manifest.create('./src/assets/favicon.png', {
// name: 'Template'
// })
// }
// }
// }
// https://astro.build/config
export default defineConfig({
integrations: [tailwind()],
compressHTML: true,
build: {
assets: 'assets',
inlineStylesheets: 'auto'
},
server: {
host: true,
port: 3000
},
trailingSlash: 'never',
vite: {
server: {
watch: {
// support WSL strange things
usePolling: !!process.env.WSL_DISTRO_NAME
}
}
},
// Customizable depending on goal
output: 'static',
// adapter: node({
// mode: "standalone"
// }),
site: 'https://avior.me',
})