avior.me/astro.config.mjs
Florian Bouillon 0ff26c24b8 feat: Move posts to use the PIcture element
Signed-off-by: Florian Bouillon <f.bouillon@aptatio.com>
2023-10-04 18:00:27 +02:00

44 lines
833 B
JavaScript

import { defineConfig } from 'astro/config'
import tailwind from "@astrojs/tailwind"
import mdx from "@astrojs/mdx"
// 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(), mdx()],
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'
})