saisilinus / node-express-mongoose-typescript-boilerplate

A boilerplate for making production-ready RESTful APIs using Node.js, TypeScript, Express, and Mongoose
MIT License
325 stars 93 forks source link

FRONT_URL as a required environmental variable #22

Closed HJassar closed 1 year ago

HJassar commented 1 year ago

Adding this makes it easy to use the correct link in development vs production. Also changing it along with the other options is easier.

Example:

const resetPasswordUrl = `http://${config.frontUrl}/reset-password?token=${token}`;