mirror of
https://github.com/lbr77/blog-astro.git
synced 2026-06-06 21:51:40 +00:00
Update blog UI and image lightbox
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { defineConfig } from 'astro/config'
|
||||
import type { AstroUserConfig } from 'astro'
|
||||
|
||||
import mdx from '@astrojs/mdx'
|
||||
import react from '@astrojs/react'
|
||||
@@ -22,6 +23,12 @@ import node from '@astrojs/node'
|
||||
|
||||
const adapterName = process.env.ASTRO_ADAPTER ?? 'vercel'
|
||||
const adapter = adapterName === 'node' ? node({ mode: 'standalone' }) : vercel()
|
||||
type AstroVitePlugin = NonNullable<
|
||||
NonNullable<AstroUserConfig['vite']>['plugins']
|
||||
>[number]
|
||||
|
||||
// Bun may keep Astro's Vite and the project-level Vite as separate package instances.
|
||||
const tailwindPlugin = tailwindcss() as unknown as AstroVitePlugin
|
||||
|
||||
export default defineConfig({
|
||||
site: 'https://nvme0n1p.dev',
|
||||
@@ -77,7 +84,7 @@ export default defineConfig({
|
||||
],
|
||||
|
||||
vite: {
|
||||
plugins: [tailwindcss()],
|
||||
plugins: [tailwindPlugin],
|
||||
},
|
||||
|
||||
server: {
|
||||
|
||||
Reference in New Issue
Block a user