New rewrite with svelte and pocketbase
This commit is contained in:
parent
72bfc2ed89
commit
160617af60
95 changed files with 4402 additions and 0 deletions
31
frontend/svelte.config.js
Normal file
31
frontend/svelte.config.js
Normal file
|
@ -0,0 +1,31 @@
|
|||
import adapter from "svelte-adapter-bun";
|
||||
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
||||
|
||||
/** @type {import('@sveltejs/kit').Config} */
|
||||
const config = {
|
||||
// Consult https://svelte.dev/docs/kit/integrations
|
||||
// for more information about preprocessors
|
||||
preprocess: vitePreprocess(),
|
||||
|
||||
kit: {
|
||||
// adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list.
|
||||
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
|
||||
// See https://svelte.dev/docs/kit/adapters for more information about adapters.
|
||||
adapter: adapter({
|
||||
out: "build",
|
||||
assets: true,
|
||||
envPrefix: "BRAWLSET_",
|
||||
development: true,
|
||||
// precompress: true,
|
||||
precompress: {
|
||||
brotli: true,
|
||||
gzip: true,
|
||||
files: ["htm", "html"],
|
||||
},
|
||||
dynamic_origin: true,
|
||||
xff_depth: 1,
|
||||
}),
|
||||
}
|
||||
};
|
||||
|
||||
export default config;
|
Loading…
Add table
Add a link
Reference in a new issue