2252cf42fd
When trying to deploy the application to my own domain I noticed that the adapter is wrong. Since I'm not hosting anything in „the Cloud” I went with a plain Node.js server. Therefore I have to use a specific adapter and also fix the type of the server response. This in turn uncovered a bug in the Created component which I also fixed. Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
23 lines
814 B
JavaScript
23 lines
814 B
JavaScript
// SPDX-FileCopyrightText: 2023 Pere Lev
|
|
// SPDX-FileCopyrightText: 2024 André Jaenisch
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
import adapter from '@sveltejs/adapter-node';
|
|
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()
|
|
}
|
|
};
|
|
|
|
export default config;
|