Add capacitor support, first working build
This commit is contained in:
parent
e525eb8a41
commit
b2797e3076
58 changed files with 2069 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
import { mdsvex } from 'mdsvex';
|
||||
import adapter from '@sveltejs/adapter-node';
|
||||
import adapterNode from '@sveltejs/adapter-node';
|
||||
import adapterStatic from '@sveltejs/adapter-static';
|
||||
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
||||
|
||||
/** @type {import('@sveltejs/kit').Config} */
|
||||
|
@ -9,7 +10,7 @@ const config = {
|
|||
preprocess: [vitePreprocess(), mdsvex()],
|
||||
|
||||
kit: {
|
||||
adapter: adapter()
|
||||
adapter: process.env.STATIC_BUILD ? adapterStatic({ strict: false}) : adapterNode()
|
||||
},
|
||||
|
||||
extensions: ['.svelte', '.svx']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue