-
Notifications
You must be signed in to change notification settings - Fork 884
Expand file tree
/
Copy pathastro.config.mjs
More file actions
28 lines (22 loc) · 880 Bytes
/
Copy pathastro.config.mjs
File metadata and controls
28 lines (22 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// @ts-check
import { defineConfig } from 'astro/config'
import tailwindcss from '@tailwindcss/vite'
import vercel from '@astrojs/vercel'
import sitemap from '@astrojs/sitemap'
import { archiveDirectoryIndexPlugin } from './scripts/archive/vite-plugin-archive-indexes.mjs'
export default defineConfig({
output: 'server',
vite: {
plugins: [tailwindcss(), archiveDirectoryIndexPlugin()],
},
build: {
inlineStylesheets: 'auto',
},
// imageService: las pocas imágenes de astro:assets (artistas) se optimizan
// vía Vercel Image Optimization en lugar de sharp, que pesaba ~16 MB dentro
// de la función serverless solo para el endpoint runtime /_image que ninguna
// ruta usa (todas las páginas con imágenes locales son prerender).
adapter: vercel({ imageService: true }),
integrations: [sitemap()],
site: 'https://www.infolavelada.com/',
})