Chore: Restructure Repository for SvelteKit

This commit is contained in:
Youwes09
2026-05-22 04:04:59 -05:00
parent bf071dcfc7
commit 8cef74bb98
266 changed files with 5093 additions and 396 deletions
+23
View File
@@ -0,0 +1,23 @@
import adapterStatic from '@sveltejs/adapter-static';
import adapterNode from '@sveltejs/adapter-node';
const target = process.env.MOKU_TARGET ?? 'static';
const adapter = target === 'node'
? adapterNode()
: adapterStatic({ fallback: 'index.html' });
/** @type {import('@sveltejs/kit').Config} */
const config = {
compilerOptions: {
runes: ({ filename }) => (filename.split(/[/\\]/).includes('node_modules') ? undefined : true),
},
kit: {
adapter,
files: {
assets: 'static',
},
},
};
export default config;