feat(licenses): improve development setup and refactor email handling

- Updated development script in package.json to load environment variables from dotenv.
- Refactored email imports to use named exports for better clarity.
- Removed unused database expiration logic and adjusted license validation to rely on Stripe subscription status.
- Enhanced error logging in webhook processing and improved console output for server status.
- Updated SMTP configuration to use more descriptive environment variable names.
- Removed the expiresAt field from the database schema to streamline license management.
This commit is contained in:
Mauricio Siu
2025-03-23 12:15:25 -06:00
parent b7874f053f
commit 9e30525569
7 changed files with 83 additions and 87 deletions

View File

@@ -3,7 +3,7 @@
"version": "0.0.1",
"type": "module",
"scripts": {
"dev": "PORT=4002 tsx watch src/index.ts",
"dev": "PORT=4002 tsx watch -r dotenv/config src/index.ts",
"build": "tsc --project tsconfig.json",
"start": "node dist/index.js",
"typecheck": "tsc --noEmit",