alfa-leetcode-api icon indicating copy to clipboard operation
alfa-leetcode-api copied to clipboard

Quality of life

Open aryanpingle opened this issue 1 year ago • 4 comments
trafficstars

  • Enables the watch flag when using npm run start, so that changes restart the server
  • Enables CORS so that different domains can use the API

aryanpingle avatar Jan 29 '24 16:01 aryanpingle

@aryanpingle is attempting to deploy a commit to the Arghya Das' projects Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Jan 29 '24 16:01 vercel[bot]

Nice catch, yeah I second that proposal

aryanpingle avatar Jan 29 '24 18:01 aryanpingle

yeah, I will check that by today ☺️

alfaarghya avatar Jan 30 '24 01:01 alfaarghya

Your code works fine 🎉 😶‍🌫️However I found an npm package for CORS, and I think it will make the codebase cleaner.

🔗https://www.npmjs.com/package/cors 💡Please read this documentation and tell me your thoughts about it. 🤔

alfaarghya avatar Jan 30 '24 04:01 alfaarghya