mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-04 00:56:01 +00:00
add: agnostic web compliant adapter
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
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 tailwindcss from '@tailwindcss/vite'
|
||||
|
||||
|
||||
export default defineConfig((): UserConfig => {
|
||||
return {
|
||||
plugins: [
|
||||
tailwindcss(),
|
||||
qwikCity({
|
||||
trailingSlash: false
|
||||
}),
|
||||
qwikVite(),
|
||||
tsconfigPaths({ root: "." }),
|
||||
],
|
||||
server: {
|
||||
headers: {
|
||||
"Cache-Control": "public, max-age=0",
|
||||
},
|
||||
},
|
||||
preview: {
|
||||
headers: {
|
||||
"Cache-Control": "public, max-age=600",
|
||||
},
|
||||
},
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user