mirror of
https://github.com/Damillora/phoebe.git
synced 2025-03-10 14:07:22 +00:00
29 lines
982 B
JavaScript
29 lines
982 B
JavaScript
import adapter from "@sveltejs/adapter-static";
|
|
import { execSync } from "child_process";
|
|
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
|
|
|
|
const commit = execSync('git rev-parse HEAD').toString().trim().substring(0, 7);
|
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
const config = {
|
|
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
|
|
// for more information about preprocessors
|
|
preprocess: [vitePreprocess({})],
|
|
|
|
kit: {
|
|
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
|
|
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
|
|
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
|
|
adapter: adapter({
|
|
fallback: 'app.html', // may differ from host to host
|
|
}),
|
|
version: {
|
|
|
|
name: `${process.env.npm_package_version}-${commit}`,
|
|
|
|
}
|
|
},
|
|
};
|
|
|
|
export default config;
|