Astro Config
3 min read
Vite rollupOptions
Sets the filename ex: /dist/_astro/main.css
File + Extension Name Variables
[extname]
: file extension that includes the.css
.[ext]
: file extensioncss
.[hash]
: random hash added to filenamemain-[hash]
.[name]
: name is based on filename, it comes up asabout
for me.
External CSS
I haven’t tried this yet, but it’s here to remind me.
Redirects
Important for pagination.
Going from wordpress that only adds /page/2
when $paged!==1
. Where Astro starts with /page
, but not /page/1
.
You can also redirect with a Redirection Layout.