File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ DATABASE_URL=postgresql://devcard:devcard@localhost:5432/devcard?schema=public
44# ─── Redis ───
55REDIS_URL = redis://localhost:6379
66
7+ # ─── Set The Url ───
8+ PUBLIC_APP_URL =
9+
710# ─── JWT ───
811# JWT_SECRET: any long random string, minimum 32 characters
912# Generate with: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ export async function nfcRoutes(app: FastifyInstance) {
100100 }
101101
102102const safeUsername = encodeURIComponent ( username ) ;
103- const payloadUrl = `https://dev-card.vercel.app /${ safeUsername } ${
103+ const payloadUrl = `${ process . env . PUBLIC_APP_URL } /${ safeUsername } ${
104104 cardId ? `?card=${ encodeURIComponent ( cardId ) } ` : ''
105105} `;
106106 const response : NfcPayloadResponse = {
You can’t perform that action at this time.
0 commit comments