diff --git a/lib/index.ts b/lib/index.ts index 5e9ea96..f0a1e78 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -103,8 +103,8 @@ app.use( if( corsEnv !== 'production' && ( - /^https?:\/\/localhost(:\d*)?$/.test(origin) || - /^https:\/\/.+\.local\.mrstache\.io$/.test(origin) + /^https:\/\/(.+\.)?localhost(:\d*)?$/.test(origin) || + /^https:\/\/.+\.local\.mrstache\.io(:\d*)?$/.test(origin) ) ) { return origin; @@ -121,7 +121,7 @@ app.use( const origin = ctx.get('origin'); // Accept dev origins only in non-production environments - if(corsEnv !== 'production' && /^https?:\/\/localhost(:\d*)?$/.test(origin)) { + if(corsEnv !== 'production' && /^https:\/\/(.+\.)?localhost(:\d*)?$/.test(origin)) { return true; } diff --git a/lib/routes/orders.ts b/lib/routes/orders.ts index 1ebcc34..46889e3 100644 --- a/lib/routes/orders.ts +++ b/lib/routes/orders.ts @@ -7,7 +7,7 @@ import { getTransactions } from '../services/transactions.js'; // TODO: make this configurable at some point const EMAIL_LIST = '90392ecd5e', - EMAIL_TAG = 'Mustache Bash SF 2025 Attendee'; + EMAIL_TAG = 'Mustache Bash 2026 Attendee'; const ordersRouter = new Router({ prefix: '/orders' diff --git a/lib/services/email.ts b/lib/services/email.ts index d3867e0..ec1f4b2 100644 --- a/lib/services/email.ts +++ b/lib/services/email.ts @@ -54,14 +54,14 @@ export function sendReceipt(guestFirstName, guestLastName, guestEmail, confirmat mailgun.messages().send({ from: 'Mustache Bash Tickets ', to: guestFirstName + ' ' + guestLastName + ' <' + guestEmail + '> ', - subject: 'Your Tickets & Confirmation For San Francisco Mustache Bash 2025', + subject: 'Your Tickets & Confirmation For Mustache Bash 2026', html: ` - The Mustache Bash SF 2025 Confirmation + The Mustache Bash 2026 Confirmation