kopia lustrzana https://github.com/cloudflare/wildebeest
27 wiersze
558 B
TypeScript
27 wiersze
558 B
TypeScript
import { defineConfig } from 'vite'
|
|
import { qwikVite } from '@builder.io/qwik/optimizer'
|
|
import { qwikCity } from '@builder.io/qwik-city/vite'
|
|
import tsconfigPaths from 'vite-tsconfig-paths'
|
|
|
|
const commitHash = process.env['COMMIT_HASH']?.slice(0, 7)
|
|
|
|
export default defineConfig(() => {
|
|
return {
|
|
define: {
|
|
COMMIT_INFO: JSON.stringify({ hash: commitHash }),
|
|
},
|
|
plugins: [
|
|
qwikCity({
|
|
trailingSlash: false,
|
|
}),
|
|
qwikVite(),
|
|
tsconfigPaths(),
|
|
],
|
|
preview: {
|
|
headers: {
|
|
'Cache-Control': 'public, max-age=600',
|
|
},
|
|
},
|
|
}
|
|
})
|