mirror of
https://github.com/tauri-apps/tauri.git
synced 2025-01-02 07:56:20 +03:00
24 lines
552 B
JavaScript
24 lines
552 B
JavaScript
import autoAdapter from '@sveltejs/adapter-auto'
|
|
import staticAdapter from '@sveltejs/adapter-static'
|
|
import preprocess from 'svelte-preprocess'
|
|
|
|
const TARGET = process.env.TARGET
|
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
const config = {
|
|
// Consult https://github.com/sveltejs/svelte-preprocess
|
|
// for more information about preprocessors
|
|
preprocess: preprocess(),
|
|
|
|
kit: {
|
|
adapter:
|
|
TARGET === 'tauri'
|
|
? staticAdapter({
|
|
fallback: 'index.html'
|
|
})
|
|
: autoAdapter()
|
|
}
|
|
}
|
|
|
|
export default config
|