mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
18 lines
No EOL
444 B
TypeScript
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),
|
|
},
|
|
}) |