mirror of
https://git.hackliberty.org/Awesome-Mirrors/personal-security-checklist.git
synced 2024-08-21 06:08:45 -06:00
34 lines
776 B
TypeScript
34 lines
776 B
TypeScript
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'
|
|
|
|
export default defineConfig((): UserConfig => {
|
|
return {
|
|
plugins: [
|
|
qwikCity(),
|
|
qwikVite(),
|
|
tsconfigPaths(),
|
|
viteStaticCopy({
|
|
targets: [
|
|
{
|
|
src: '../personal-security-checklist.yml',
|
|
dest: 'public'
|
|
}
|
|
]
|
|
})
|
|
],
|
|
server: {
|
|
headers: {
|
|
"Cache-Control": "public, max-age=0",
|
|
},
|
|
},
|
|
preview: {
|
|
headers: {
|
|
"Cache-Control": "public, max-age=600",
|
|
},
|
|
},
|
|
};
|
|
});
|