From 22e1471d863cdd4f47508a91c3cdd21f6b57f2e2 Mon Sep 17 00:00:00 2001 From: Jonathan Gan Date: Sun, 12 Jan 2025 23:08:53 -0500 Subject: [PATCH] trying something for prod deploy --- build-webrtc.sh | 5 +++++ vercel.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 build-webrtc.sh diff --git a/build-webrtc.sh b/build-webrtc.sh new file mode 100644 index 00000000..6d91899f --- /dev/null +++ b/build-webrtc.sh @@ -0,0 +1,5 @@ +#!/bin/bash +git clone https://github.com/node-webrtc/node-webrtc.git +cd node-webrtc +npm run build +cp build-linux-x64/Release/wrtc.node ../node_modules/ \ No newline at end of file diff --git a/vercel.json b/vercel.json index 379cfd6d..b40ae48e 100644 --- a/vercel.json +++ b/vercel.json @@ -7,7 +7,7 @@ "src": "package.json", "use": "@vercel/next", "config": { - "installCommand": "yarn && cat dependencies.txt | xargs yarn add --ignore-platform" + "installCommand": "yarn && ./build-webrtc.sh" } }] } \ No newline at end of file