Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ app.use("/functions/storage", storageRouter);
app.use("/functions/verify", verifyRouter);
app.disable("x-powered-by");

export const handler = serverless(app);
// export const handler = serverless(app);

// app.listen(8888, () => {
// console.log("Server running on port 8888");
// });
app.listen(8888, () => {
console.log("Server running on port 8888");
});
6 changes: 5 additions & 1 deletion lambda/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ export const ALLOWED_ORIGINS =
"*",
]
: [
"http://127.0.0.1:3000",
"http://localhost:3000",
"http://127.0.0.1:3000/*",
"http://localhost:3000/*",
"https://creator.tradetrust.io",
"https://dev.tradetrust.io",
"https://tradetrust.io",
Expand Down Expand Up @@ -94,7 +98,7 @@ export const SUPPORTED_NETWORKS: supportedNetworks = {
},
[CHAIN_ID.xdcapothem]: {
...SUPPORTED_CHAINS[CHAIN_ID.xdcapothem],
provider: jsonRpcProvider(SUPPORTED_CHAINS[CHAIN_ID.xdcapothem].rpcUrl),
provider: jsonRpcProvider("https://erpc.apothem.network"),
},
[CHAIN_ID.stability]: {
...SUPPORTED_CHAINS[CHAIN_ID.stability],
Expand Down
6 changes: 3 additions & 3 deletions make-lambda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ rm -rf ./dist.zip
# execute tsc
tsc
# copy package.json to dist
cp ./package-lambda.json ./dist/package.json
cp ./package-lock-lambda.json ./dist/package-lock.json
cp ./package.json ./dist/package.json
cp ./package-lock.json ./dist/package-lock.json

# install dependencies
cd ./dist
npm install

# zip dist
zip -r ../dist.zip .
# zip -r ../dist.zip .
Loading
Loading