diff --git a/packages/backend/index.ts b/packages/backend/index.ts index 581ef12..6fe5fa3 100644 --- a/packages/backend/index.ts +++ b/packages/backend/index.ts @@ -33,9 +33,7 @@ app.use(morgan("common")); app.use(bodyParser.json({ limit: "30mb" })); app.use(bodyParser.urlencoded({ limit: "30mb", extended: true })); app.use( - cors({ - origin: "*", - }), + cors(), ); /**Ably Setup */ diff --git a/packages/backend/vercel.json b/packages/backend/vercel.json index a3b7958..5e02a5b 100644 --- a/packages/backend/vercel.json +++ b/packages/backend/vercel.json @@ -1,11 +1,6 @@ { - "version": 2, - "name": "dice-demonstration-backend", - "builds": [ - { "src": "index.ts", "use": "@vercel/node" } - ], - "routes": [ - { "src": "/(.*)", "dest": "/index.ts" } - ] - } - \ No newline at end of file + "version": 2, + "name": "dice-demonstration-backend", + "builds": [{ "src": "index.ts", "use": "@vercel/node" }], + "routes": [{ "src": "/(.*)", "dest": "/index.ts" }] +} diff --git a/packages/nextjs/components/Wallet.tsx b/packages/nextjs/components/Wallet.tsx index c8b7dbd..4dcba08 100644 --- a/packages/nextjs/components/Wallet.tsx +++ b/packages/nextjs/components/Wallet.tsx @@ -213,7 +213,7 @@ export default function Wallet() {