Skip to content

Commit

Permalink
Typecheck svelte config
Browse files Browse the repository at this point in the history
  • Loading branch information
sibiraj-s committed Nov 26, 2023
1 parent 5562992 commit caabcf4
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions svelte.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// @ts-check
import { vitePreprocess } from '@sveltejs/kit/vite';
import adapter from '@sveltejs/adapter-static';

const dev = process.env.NODE_ENV === 'development';

/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: vitePreprocess(),

kit: {
// generate static site
adapter: adapter({
pages: 'build',
assets: 'build',
precompress: false,
}),

paths: {
base: dev ? '' : '/svelte-tiptap',
},

appDir: 'core',
},
};

export default config;

0 comments on commit caabcf4

Please sign in to comment.