feat: polish
This commit is contained in:
parent
2e6177fe74
commit
4bd927bb4e
137 changed files with 6357 additions and 137560 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue