feat: polish

This commit is contained in:
Anatoly Antonov 2026-04-22 01:27:38 +09:00
parent 2e6177fe74
commit 4bd927bb4e
137 changed files with 6357 additions and 137560 deletions

View file

@ -1,13 +1,34 @@
import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-static';
/** @type {import('@sveltejs/kit').Config} */
/**
* This project is deployed as a pure static SPA against a Django REST backend.
* SSR/hydration are disabled; all routing is done client-side.
*
* `fallback: 'index.html'` makes every unknown path serve index.html so the
* SvelteKit client router can handle it.
*
* @type {import('@sveltejs/kit').Config}
*/
const config = {
kit: {
// adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list.
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
// See https://svelte.dev/docs/kit/adapters for more information about adapters.
adapter: adapter()
}
adapter: adapter({
pages: 'build',
assets: 'build',
fallback: 'index.html',
precompress: false,
strict: false,
}),
alias: {
$api: 'src/lib/api',
$auth: 'src/lib/auth',
$domain: 'src/lib/domain',
$map: 'src/lib/map',
$state: 'src/lib/state',
$ui: 'src/lib/ui',
$i18n: 'src/lib/i18n',
$features: 'src/lib/features',
},
},
};
export default config;