From 70391e93e00e6b676297cd9543ad11a84dfef9a7 Mon Sep 17 00:00:00 2001 From: Niko PLP Date: Thu, 1 May 2025 17:32:15 +0300 Subject: [PATCH] ngd build instructions --- .gitignore | 1 + DEV.md | 11 ++++++++--- ng-broker/src/server_ws.rs | 17 ++++++++++++++++ ngd/Cargo.toml | 4 +++- pnpm-lock.yaml | 40 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 69 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index f1e389f..777abec 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ node_modules */ng-example/* .vscode/settings.json .env.local +ng-broker/static diff --git a/DEV.md b/DEV.md index f4385bb..c73f378 100644 --- a/DEV.md +++ b/DEV.md @@ -33,6 +33,7 @@ cargo run-script app cd ../.. pnpm -C ./ng-app install pnpm -C ./ng-app webfilebuild +pnpm -C ./helpers/app-auth install pnpm -C ./helpers/app-auth build ``` @@ -181,10 +182,14 @@ cargo install cargo-run-script npm install -g pnpm cd ng-sdk-js cargo run-script app -cd ../ng-app -pnpm install -pnpm webfilebuild cd .. +pnpm -C ./ng-app install +pnpm -C ./ng-app webfilebuild +pnpm -C ./helpers/app-auth install +pnpm -C ./helpers/app-auth build +mkdir ng-broker/static +cp -r ./ng-app/dist-file ./ng-broker/static/app +cp -r ./helpers/app-auth/dist ./ng-broker/static/app-auth ``` then build the ngd daemon diff --git a/ng-broker/src/server_ws.rs b/ng-broker/src/server_ws.rs index 7254b20..b8c8512 100644 --- a/ng-broker/src/server_ws.rs +++ b/ng-broker/src/server_ws.rs @@ -192,12 +192,14 @@ fn prepare_urls_from_private_addrs(addrs: &Vec, port: u16) -> Vec