diff --git a/frontend/default.nix b/frontend/default.nix index 76949ec..51d0d10 100644 --- a/frontend/default.nix +++ b/frontend/default.nix @@ -1,11 +1,13 @@ -{ pkgs ? import { } }: +{ + pkgs ? import { }, +}: pkgs.buildNpmPackage { - pname = "my-node-app"; # Name of your package - version = "1.0.0"; # Your app version + pname = "jitsi-rooms-backendd"; + version = "1.0.0"; # Source files (usually the current directory) - src = pkgs.lib.cleanSource ../frontend; + src = pkgs.lib.cleanSource ./.; # Optionally, you can provide a package-lock.json or yarn.lock file # This ensures dependencies are installed reproducibly. @@ -15,7 +17,6 @@ pkgs.buildNpmPackage { nodejs = pkgs.nodejs-18_x; npmDepsHash = "sha256-n9SpPPRvu92RwNPDKZ3f1Splbux2IVGhSazJ4DM2IrA="; - # Add any additional arguments for the build process buildInputs = [ ]; diff --git a/frontend/src/background/constants.ts b/frontend/src/background/constants.ts index 2da5e5d..46f6bd8 100644 --- a/frontend/src/background/constants.ts +++ b/frontend/src/background/constants.ts @@ -1,9 +1,9 @@ const ISPROD = window.location.protocol == 'https:' -const JITSI_DOMAIN = 'thisisnotajitsi.filefighter.de' +const JITSI_DOMAIN = 'meet.filefighter.de' const USE_REMOTE_BACKEND = true const getWebsocketUrl = () => { if (ISPROD) return 'wss://' + window.location.host + '/ws' - if (USE_REMOTE_BACKEND) return 'wss://' + 'discord.filefighter.de/ws' + if (USE_REMOTE_BACKEND) return 'wss://' + 'treffen.filefighter.de/ws' return 'ws://' + 'localhost:9160/ws' } const WEBSOCKET_URL = getWebsocketUrl()