feat: Upgrade to Astro 3.5
Signed-off-by: Avior <github@avior.me>
This commit is contained in:
parent
f1d535073e
commit
f112ac6b50
@ -15,30 +15,57 @@ import node from "@astrojs/node"
|
|||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
integrations: [tailwind()],
|
// Use the NodeJS adapter
|
||||||
compressHTML: true,
|
adapter: node({
|
||||||
|
mode: "standalone"
|
||||||
|
}),
|
||||||
|
|
||||||
|
// some settings to the build output
|
||||||
build: {
|
build: {
|
||||||
|
// the asset path
|
||||||
assets: 'assets',
|
assets: 'assets',
|
||||||
|
|
||||||
|
// inline the stylesheet if it is small enough
|
||||||
inlineStylesheets: 'auto'
|
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: {
|
server: {
|
||||||
host: true,
|
host: true,
|
||||||
port: 3000
|
port: 3000
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// Remove the trailing slash by default
|
||||||
trailingSlash: 'never',
|
trailingSlash: 'never',
|
||||||
|
|
||||||
|
// Dev Server
|
||||||
vite: {
|
vite: {
|
||||||
server: {
|
server: {
|
||||||
watch: {
|
watch: {
|
||||||
|
// Ignore some paths
|
||||||
|
ignored: [],
|
||||||
// support WSL strange things
|
// support WSL strange things
|
||||||
usePolling: !!process.env.WSL_DISTRO_NAME
|
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
3589
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user