PluralKit/docs/vite.config.ts
2026-01-11 17:55:03 -05:00

18 lines
No EOL
444 B
TypeScript

import { sveltekit } from '@sveltejs/kit/vite';
import { mdsvex } from 'mdsvex';
import { defineConfig } from 'vite';
import { execSync } from "node:child_process"
const hash = execSync("git rev-parse --short HEAD").toString().trim()
export default defineConfig({
plugins: [sveltekit(), mdsvex({ extension: ".md" })],
server: {
fs: {
allow: ["."]
}
},
define: {
__COMMIT_HASH__: JSON.stringify("_" + hash),
},
})