mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
chore: run web (only) with remote backend (#2196)
This commit is contained in:
@@ -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()]
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user