Prepare for NPM + Cloudflare pages

This commit is contained in:
venashial
2022-03-13 23:10:58 -07:00
parent b69ff6ca8a
commit 630a1d42b8
15 changed files with 115 additions and 160 deletions

View File

@@ -1,6 +1,6 @@
import {mdsvex} from 'mdsvex';
import mdsvexConfig from './mdsvex.config.js';
import adapter from '@sveltejs/adapter-static';
import adapter from '@sveltejs/adapter-auto';
import preprocess from 'svelte-preprocess';
import Icons from 'unplugin-icons/vite';
import svelteSvg from '@poppanator/sveltekit-svg';
@@ -17,20 +17,13 @@ const config = {
],
kit: {
adapter: adapter({
pages: 'build',
assets: 'build',
fallback: null
}),
...(process.env.NODE_ENV !== 'development' ? ({
paths: {
base: '/omorphia'
} }) : ({})),
adapter: adapter(),
vite: {
plugins: [
svelteSvg(),
Icons({
compiler: 'svelte',
defaultClass: 'icon',
}),
],
},