mirror of
https://github.com/immich-app/immich.git
synced 2025-07-15 20:38:26 +02:00
perf: precompress and cache assets (#7757)
* perf: precompress and cache assets * fix cache header * use startswith --------- Co-authored-by: mertalev <101130780+mertalev@users.noreply.github.com>
This commit is contained in:
parent
4fdb0835c9
commit
ba55e867e0
4 changed files with 77 additions and 7 deletions
|
@ -6,13 +6,8 @@ const config = {
|
|||
preprocess: vitePreprocess(),
|
||||
kit: {
|
||||
adapter: adapter({
|
||||
// default options are shown. On some platforms
|
||||
// these options are set automatically — see below
|
||||
pages: 'build',
|
||||
assets: 'build',
|
||||
fallback: 'index.html',
|
||||
precompress: false,
|
||||
strict: true,
|
||||
precompress: true,
|
||||
}),
|
||||
alias: {
|
||||
$lib: 'src/lib',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue