Skip to content

Commit

Permalink
Merge pull request #3 from yodaplus/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
ShadyAkhtar authored Jan 2, 2025
2 parents 767f9e1 + bca69d3 commit de072bd
Show file tree
Hide file tree
Showing 6 changed files with 249 additions and 37 deletions.
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

0 comments on commit de072bd

Please sign in to comment.