Skip to content

Commit

Permalink
refactor: svelte config into typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
h3nryc0ding committed Aug 5, 2024
1 parent e86b756 commit 6e2ee27
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions frontend/svelte.config.js → frontend/svelte.config.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
import adapter from '@sveltejs/adapter-node';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
import * as path from 'path';
import type { Config } from '@sveltejs/kit';

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

kit: {
adapter: adapter({ out: 'build', precompress: false, envPrefix: '' }),
adapter: adapter({
out: 'build',
precompress: true,
envPrefix: ''
}),
alias: {
$houdini: path.resolve('.', '$houdini')
}
Expand Down

0 comments on commit 6e2ee27

Please sign in to comment.