Skip to content

Commit 6250208

Browse files
committed
Cleanup
1 parent cee495c commit 6250208

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

frontend/src/hooks/useWebSocket.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function useWebSocket() {
4040
setStatus('connecting')
4141

4242
// Get the token (currently hardcoded as "token", same as used in API calls).
43-
// When Authelia is implemented, this should get the actual JWT token.
43+
// TODO: When Authelia is implemented, this should get the actual JWT token.
4444
const token = 'token'
4545

4646
const wsEnvUrl = import.meta.env.VITE_WS_URL as string | undefined

frontend/vite.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ export default defineConfig({
1919
proxy: {
2020
'/api': {
2121
target: process.env.VITE_API_URL || 'http://localhost:11764',
22-
changeOrigin: true,
23-
ws: true,
22+
changeOrigin: true, // Needed for CORS
23+
ws: true, // Enable WebSocket proxying
2424
},
2525
'/test': {
2626
target: process.env.VITE_API_URL || 'http://localhost:11764',
@@ -41,8 +41,8 @@ export default defineConfig({
4141
proxy: {
4242
'/api': {
4343
target: process.env.VITE_API_URL || 'http://localhost:11764',
44-
changeOrigin: true,
45-
ws: true,
44+
changeOrigin: true, // Needed for CORS
45+
ws: true, // Enable WebSocket proxying
4646
},
4747
'/test': {
4848
target: process.env.VITE_API_URL || 'http://localhost:11764',

0 commit comments

Comments
 (0)