Skip to content

Commit 4352759

Browse files
committed
feat: import Serveless Function build script
- Import vercel-lib.sh from last year's code repository to current repo's site code - Update site code's vercel.json to run this script
1 parent e3a7472 commit 4352759

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

apps/site/vercel-lib.sh

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Install python3-saml dependencies on Vercel's Serverless Function
2+
# environment (Amazon Linux)
3+
4+
yum install -y libxml2-devel xmlsec1-devel xmlsec1-openssl-devel libtool-ltdl-devel
5+
lib_files=(
6+
libltdl.so.7
7+
libltdl.so.7.3.0
8+
libxml2.so.2
9+
libxml2.so.2.9.1
10+
libxmlsec1-openssl.so
11+
libxmlsec1-openssl.so.1.2.20
12+
libxmlsec1.so.1
13+
libxmlsec1.so.1.2.20
14+
libxslt.so.1
15+
libxslt.so.1.1.28
16+
)
17+
18+
mkdir lib
19+
for file in "${lib_files[@]}"
20+
do
21+
cp /usr/lib64/$file lib/
22+
done
23+
24+
echo $PWD
25+
ls
26+
ls lib

apps/site/vercel.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"buildCommand": "cd ../.. && turbo run build --filter={apps/site} && cd apps/site && ./copy-api.sh",
2+
"buildCommand": "cd ../.. && turbo run build --filter={apps/site} && cd apps/site && ./copy-api.sh && ./vercel-lib.sh",
33
"functions": {
44
"api/index.py": {
55
"memory": 512,

0 commit comments

Comments
 (0)