mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-17 19:26:23 +00:00
38 lines
1.0 KiB
TypeScript
38 lines
1.0 KiB
TypeScript
import { defineConfig } from 'vite'
|
|
import { qwikVite } from '@builder.io/qwik/optimizer'
|
|
import { qwikCity } from '@builder.io/qwik-city/vite'
|
|
import { imagetools } from 'vite-imagetools'
|
|
import tsconfigPaths from 'vite-tsconfig-paths'
|
|
import { SITE } from './src/config.mjs'
|
|
|
|
const path = require('path')
|
|
|
|
export default defineConfig(() => {
|
|
return {
|
|
plugins: [
|
|
qwikCity({
|
|
basePathname: SITE.basePathname,
|
|
trailingSlash: SITE.trailingSlash,
|
|
mdxPlugins: {
|
|
rehypeSyntaxHighlight: true,
|
|
rehypeAutolinkHeadings: false,
|
|
remarkGfm: true,
|
|
},
|
|
}),
|
|
qwikVite(),
|
|
tsconfigPaths(),
|
|
imagetools(),
|
|
],
|
|
preview: {
|
|
headers: {
|
|
'Cache-Control': 'public, max-age=600',
|
|
},
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'~': path.resolve(__dirname, './src'),
|
|
},
|
|
},
|
|
}
|
|
})
|