phoebe/pkg/web/svelte.config.js

25 lines
876 B
JavaScript
Raw Permalink Normal View History

import adapter from "@sveltejs/adapter-static";
2025-02-24 13:50:43 +00:00
import { execSync } from "child_process";
2025-02-05 17:39:21 +00:00
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
/** @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
2025-02-24 13:50:43 +00:00
}),
version: {
2025-02-24 15:06:40 +00:00
name: `${process.env.npm_package_version}`,
2025-02-24 13:50:43 +00:00
}
},
};
export default config;