feat: Upgrade to Astro 3.5

Signed-off-by: Avior <github@avior.me>
This commit is contained in:
Florian Bouillon 2023-11-11 14:09:42 +01:00
parent f1d535073e
commit f112ac6b50
Signed by: Florian Bouillon
GPG Key ID: 0A288052C94BD2C8
2 changed files with 2672 additions and 960 deletions

View File

@ -15,30 +15,57 @@ import node from "@astrojs/node"
// https://astro.build/config
export default defineConfig({
integrations: [tailwind()],
compressHTML: true,
// Use the NodeJS adapter
adapter: node({
mode: "standalone"
}),
// some settings to the build output
build: {
// the asset path
assets: 'assets',
// inline the stylesheet if it is small enough
inlineStylesheets: 'auto'
},
// Compress the HTML output
compressHTML: true,
// Customizable depending on goal
output: 'server',
// Add TailwindCSS
integrations: [tailwind()],
// prefetch links
prefetch: {
defaultStrategy: 'hover'
},
// the site url
site: 'https://example.com',
// the Output server
server: {
host: true,
port: 3000
},
// Remove the trailing slash by default
trailingSlash: 'never',
// Dev Server
vite: {
server: {
watch: {
// Ignore some paths
ignored: [],
// support WSL strange things
usePolling: !!process.env.WSL_DISTRO_NAME
}
}
},
// Customizable depending on goal
output: 'server',
adapter: node({
mode: "standalone"
}),
site: 'https://example.com',
})

3589
package-lock.json generated

File diff suppressed because it is too large Load Diff