mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
parent
7c2f7d6c51
commit
f55b3add80
242 changed files with 12794 additions and 13426 deletions
|
|
@ -3,26 +3,26 @@ import path from 'path';
|
|||
|
||||
/** @type {import('vite').UserConfig} */
|
||||
const config = {
|
||||
resolve: {
|
||||
alias: {
|
||||
'xmlhttprequest-ssl': './node_modules/engine.io-client/lib/xmlhttprequest.js',
|
||||
'@api': path.resolve('./src/api')
|
||||
}
|
||||
},
|
||||
server: {
|
||||
// connect to a remote backend during web-only development
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: process.env.PUBLIC_IMMICH_SERVER_URL,
|
||||
secure: true,
|
||||
changeOrigin: true,
|
||||
logLevel: 'debug',
|
||||
rewrite: (path) => path.replace(/^\/api/, ''),
|
||||
ws: true
|
||||
}
|
||||
}
|
||||
},
|
||||
plugins: [sveltekit()]
|
||||
resolve: {
|
||||
alias: {
|
||||
'xmlhttprequest-ssl': './node_modules/engine.io-client/lib/xmlhttprequest.js',
|
||||
'@api': path.resolve('./src/api'),
|
||||
},
|
||||
},
|
||||
server: {
|
||||
// connect to a remote backend during web-only development
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: process.env.PUBLIC_IMMICH_SERVER_URL,
|
||||
secure: true,
|
||||
changeOrigin: true,
|
||||
logLevel: 'debug',
|
||||
rewrite: (path) => path.replace(/^\/api/, ''),
|
||||
ws: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
plugins: [sveltekit()],
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue