personal-security-checklist/web/vite.config.mts

34 lines
776 B
TypeScript
Raw Normal View History

2024-01-31 16:18:13 -05:00
import { defineConfig, type UserConfig } from "vite";
import { qwikVite } from "@builder.io/qwik/optimizer";
import { qwikCity } from "@builder.io/qwik-city/vite";
import tsconfigPaths from "vite-tsconfig-paths";
import { viteStaticCopy } from 'vite-plugin-static-copy'
2024-01-31 16:18:13 -05:00
export default defineConfig((): UserConfig => {
return {
plugins: [
qwikCity(),
qwikVite(),
tsconfigPaths(),
viteStaticCopy({
targets: [
{
src: '../personal-security-checklist.yml',
dest: 'public'
}
]
})
],
2024-01-31 16:18:13 -05:00
server: {
headers: {
"Cache-Control": "public, max-age=0",
},
},
preview: {
headers: {
"Cache-Control": "public, max-age=600",
},
},
};
});