Skip to content

Commit 3d8bee8

Browse files
Change vite listen port name to GOTIFY_SERVER_PORT
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
1 parent 8741d1e commit 3d8bee8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ui/vite.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {defineConfig} from 'vite';
22
import react from '@vitejs/plugin-react';
33

4-
const GOTIFY_PORT = process.env.GOTIFY_PORT ?? '80';
4+
const GOTIFY_SERVER_PORT = process.env.GOTIFY_SERVER_PORT ?? '80';
55

66
export default defineConfig({
77
build: {
@@ -21,12 +21,12 @@ export default defineConfig({
2121
host: '0.0.0.0',
2222
proxy: {
2323
'^/(application|message|client|current|user|plugin|version|image)': {
24-
target: `http://localhost:${GOTIFY_PORT}/`,
24+
target: `http://localhost:${GOTIFY_SERVER_PORT}/`,
2525
changeOrigin: true,
2626
secure: false,
2727
},
2828
'/stream': {
29-
target: `ws://localhost:${GOTIFY_PORT}/`,
29+
target: `ws://localhost:${GOTIFY_SERVER_PORT}/`,
3030
ws: true,
3131
rewriteWsOrigin: true,
3232
},

0 commit comments

Comments
 (0)