template-web-astro/astro.config.mjs
Florian Bouillon a0390bea73
Some checks failed
Build, check & Test / run (push) Failing after 13s
feat: Upgrade to Astro 3
Signed-off-by: Florian BOUILLON <f.bouillon@aptatio.com>
2023-08-31 10:26:30 +02:00

45 lines
869 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: 'server',
adapter: node({
mode: "standalone"
}),
site: 'https://example.com',
})