Closed selfagency closed 3 weeks ago
Its trying to pull from the adapter-node folder and is expecting it in the same directory
What does your config look like when you try to do this?
svelte.config.js
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
import postcssConfig from 'postcss-load-config';
import adapter from 'sveltekit-adapter-iis';
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: [
vitePreprocess({
postcss: true,
postcssConfig,
}),
],
kit: {
adapter: adapter(),
csp: {
directives: {
// 'script-src': ['self', 'unsafe-eval', 'https://unpkg.com'],
},
},
csrf: {
checkOrigin: false,
},
outdir: 'build',
},
};
export default config;
What's the necessity to changing your output directory to build?
isn't a necessity, just a preference. either way i have a far more pressing issue i'm about to open a ticket for.
Looking at the logs it looks like adapter-node doesn't actually support a different directory and expects everything to be under .svelte-kit
ok thanks for looking into it
If I try to use
build
instead of.svelte-kit
as myoutDir
insvelte.config.js
this happens on every build: