- Updated docker-compose.yaml to use double quotes for version and port mappings. - Removed DEPLOYMENT_PROVIDER from global environment variables in turbo.json and Dockerfile. - Adjusted dashboard build command in package.json to remove DEPLOYMENT_PROVIDER. - Cleaned up .env.example by removing the DEPLOYMENT_PROVIDER comment. - Simplified SvelteKit adapter condition in svelte.config.js.
27 lines
745 B
JavaScript
27 lines
745 B
JavaScript
import 'dotenv/config';
|
|
|
|
// import adapterAuto from '@sveltejs/adapter-auto';
|
|
import adapterNode from '@sveltejs/adapter-node';
|
|
import adapterVercel from '@sveltejs/adapter-vercel';
|
|
import path from 'path';
|
|
import { vitePreprocess } from '@sveltejs/kit/vite';
|
|
|
|
const useNodeAdapter = process.env.PUBLIC_IS_SELFHOSTED === 'true';
|
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
const config = {
|
|
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
|
|
// for more information about preprocessors
|
|
preprocess: [vitePreprocess({})],
|
|
|
|
kit: {
|
|
adapter: useNodeAdapter ? adapterNode() : adapterVercel(),
|
|
alias: {
|
|
$lib: path.resolve('./src/lib'),
|
|
$mail: path.resolve('./src/mail')
|
|
}
|
|
}
|
|
};
|
|
|
|
export default config;
|