Skip to content

Commit da520c4

Browse files
committed
ci: load gotify-server.env.local for ui
1 parent 4c14b89 commit da520c4

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

ui/vite.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ import {defineConfig} from 'vite';
22
import react from '@vitejs/plugin-react';
33
import babel from '@rolldown/plugin-babel';
44

5+
try {
6+
process.loadEnvFile('../gotify-server.env.local');
7+
} catch {
8+
// file is optional
9+
}
10+
511
const GOTIFY_SERVER_PORT = process.env.GOTIFY_SERVER_PORT ?? '80';
612

713
function decoratorPreset(options: Record<string, unknown>) {

0 commit comments

Comments
 (0)