feat: switch domain from votc.jeffemmett.com to valleyofthecommons.com
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
685bb535f8
commit
8b1d45485c
|
|
@ -49,7 +49,7 @@ GOOGLE_SHEET_NAME=Waitlist
|
||||||
MOLLIE_API_KEY=test_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
MOLLIE_API_KEY=test_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||||
|
|
||||||
# Public base URL for redirects and webhooks
|
# Public base URL for redirects and webhooks
|
||||||
BASE_URL=https://votc.jeffemmett.com
|
BASE_URL=https://valleyofthecommons.com
|
||||||
|
|
||||||
# ============================================
|
# ============================================
|
||||||
# AI Gateway Configuration for Game Chat
|
# AI Gateway Configuration for Game Chat
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ const confirmationEmail = (application) => ({
|
||||||
<p>In the meantime, feel free to explore more about the Commons Hub and our community:</p>
|
<p>In the meantime, feel free to explore more about the Commons Hub and our community:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="https://www.commons-hub.at/">Commons Hub Website</a></li>
|
<li><a href="https://www.commons-hub.at/">Commons Hub Website</a></li>
|
||||||
<li><a href="https://votc.jeffemmett.com/">Valley of the Commons</a></li>
|
<li><a href="https://valleyofthecommons.com/">Valley of the Commons</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p>If you have any questions, reply to this email and we'll get back to you.</p>
|
<p>If you have any questions, reply to this email and we'll get back to you.</p>
|
||||||
|
|
@ -101,7 +101,7 @@ const adminNotificationEmail = (application) => ({
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<a href="https://votc.jeffemmett.com/admin.html" style="display: inline-block; background: #2d5016; color: white; padding: 12px 24px; text-decoration: none; border-radius: 6px;">
|
<a href="https://valleyofthecommons.com/admin.html" style="display: inline-block; background: #2d5016; color: white; padding: 12px 24px; text-decoration: none; border-radius: 6px;">
|
||||||
Review Application
|
Review Application
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ async function createPayment(applicationId, ticketType, weeksCount, email, first
|
||||||
throw new Error(`Invalid ticket type: ${ticketType}`);
|
throw new Error(`Invalid ticket type: ${ticketType}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
const baseUrl = process.env.BASE_URL || 'https://votc.jeffemmett.com';
|
const baseUrl = process.env.BASE_URL || 'https://valleyofthecommons.com';
|
||||||
const description = `Valley of the Commons - ${TICKET_LABELS[ticketType] || ticketType}`;
|
const description = `Valley of the Commons - ${TICKET_LABELS[ticketType] || ticketType}`;
|
||||||
|
|
||||||
const payment = await mollieClient.payments.create({
|
const payment = await mollieClient.payments.create({
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
const { Pool } = require('pg');
|
const { Pool } = require('pg');
|
||||||
const nodemailer = require('nodemailer');
|
const nodemailer = require('nodemailer');
|
||||||
|
const { syncWaitlistSignup } = require('./google-sheets');
|
||||||
|
|
||||||
// Initialize PostgreSQL connection pool
|
// Initialize PostgreSQL connection pool
|
||||||
const pool = new Pool({
|
const pool = new Pool({
|
||||||
|
|
@ -47,7 +48,7 @@ const welcomeEmail = (signup) => ({
|
||||||
` : ''}
|
` : ''}
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<a href="https://votc.jeffemmett.com/apply.html" style="display: inline-block; background: #2d5016; color: white; padding: 12px 24px; text-decoration: none; border-radius: 6px;">
|
<a href="https://valleyofthecommons.com/apply.html" style="display: inline-block; background: #2d5016; color: white; padding: 12px 24px; text-decoration: none; border-radius: 6px;">
|
||||||
Apply Now
|
Apply Now
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
@ -59,8 +60,8 @@ const welcomeEmail = (signup) => ({
|
||||||
|
|
||||||
<hr style="border: none; border-top: 1px solid #ddd; margin: 32px 0;">
|
<hr style="border: none; border-top: 1px solid #ddd; margin: 32px 0;">
|
||||||
<p style="font-size: 12px; color: #666;">
|
<p style="font-size: 12px; color: #666;">
|
||||||
You received this email because you signed up at votc.jeffemmett.com.<br>
|
You received this email because you signed up at valleyofthecommons.com.<br>
|
||||||
<a href="https://votc.jeffemmett.com/unsubscribe?email=${encodeURIComponent(signup.email)}">Unsubscribe</a>
|
<a href="https://valleyofthecommons.com/unsubscribe?email=${encodeURIComponent(signup.email)}">Unsubscribe</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
|
|
@ -145,6 +146,9 @@ module.exports = async function handler(req, res) {
|
||||||
involvement: involvementTrimmed
|
involvement: involvementTrimmed
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Sync to Google Sheets (fire-and-forget backup)
|
||||||
|
syncWaitlistSignup(signup);
|
||||||
|
|
||||||
// Send welcome email
|
// Send welcome email
|
||||||
if (process.env.SMTP_PASS) {
|
if (process.env.SMTP_PASS) {
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ services:
|
||||||
- GOOGLE_SHEET_ID=1uZy21IjIwAES92ki6K33CtiTfEzGoUlxQ8jk3IzA0qI
|
- GOOGLE_SHEET_ID=1uZy21IjIwAES92ki6K33CtiTfEzGoUlxQ8jk3IzA0qI
|
||||||
- GOOGLE_SERVICE_ACCOUNT_FILE=/run/secrets/google-service-account.json
|
- GOOGLE_SERVICE_ACCOUNT_FILE=/run/secrets/google-service-account.json
|
||||||
- MOLLIE_API_KEY=${MOLLIE_API_KEY}
|
- MOLLIE_API_KEY=${MOLLIE_API_KEY}
|
||||||
- BASE_URL=https://votc.jeffemmett.com
|
- BASE_URL=https://valleyofthecommons.com
|
||||||
volumes:
|
volumes:
|
||||||
- ./google-service-account.json:/run/secrets/google-service-account.json:ro
|
- ./google-service-account.json:/run/secrets/google-service-account.json:ro
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|
@ -24,7 +24,7 @@ services:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.votc.rule=Host(`votc.jeffemmett.com`)"
|
- "traefik.http.routers.votc.rule=Host(`valleyofthecommons.com`) || Host(`www.valleyofthecommons.com`) || Host(`votc.jeffemmett.com`)"
|
||||||
- "traefik.http.services.votc.loadbalancer.server.port=3000"
|
- "traefik.http.services.votc.loadbalancer.server.port=3000"
|
||||||
networks:
|
networks:
|
||||||
- traefik-public
|
- traefik-public
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue