2024-02-01 04:18:13 +07: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";
|
2024-02-04 23:38:51 +07:00
|
|
|
import { viteStaticCopy } from 'vite-plugin-static-copy'
|
2024-02-01 04:18:13 +07:00
|
|
|
|
|
|
|
export default defineConfig((): UserConfig => {
|
|
|
|
return {
|
2024-02-04 23:38:51 +07:00
|
|
|
plugins: [
|
|
|
|
qwikCity(),
|
|
|
|
qwikVite(),
|
|
|
|
tsconfigPaths(),
|
|
|
|
viteStaticCopy({
|
|
|
|
targets: [
|
|
|
|
{
|
|
|
|
src: '../personal-security-checklist.yml',
|
|
|
|
dest: 'public'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
})
|
|
|
|
],
|
2024-02-01 04:18:13 +07:00
|
|
|
server: {
|
|
|
|
headers: {
|
|
|
|
"Cache-Control": "public, max-age=0",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
preview: {
|
|
|
|
headers: {
|
|
|
|
"Cache-Control": "public, max-age=600",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
});
|