mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
chore: run web (only) with remote backend (#2196)
This commit is contained in:
parent
ab5b92ae68
commit
1f17720be2
2 changed files with 25 additions and 0 deletions
|
|
@ -9,6 +9,19 @@ const config = {
|
|||
'@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()]
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue