fix: consolidate Helcim token to HELCIM_API_TOKEN for both server and widget

This commit is contained in:
Jennie Robinson Faber 2026-04-04 14:00:17 +01:00
parent d31b5b4dac
commit fdc925331d
2 changed files with 6 additions and 7 deletions

View file

@ -1,13 +1,12 @@
# Database Configuration # Database Configuration
MONGODB_URI=mongodb://localhost:27017/ghostguild MONGODB_URI=mongodb://localhost:27017/ghostguild
# Helcim Payment Configuration (Public - used in frontend) # Helcim Configuration
NUXT_PUBLIC_HELCIM_TOKEN=your-helcim-js-token # Switch between test and live by commenting/uncommenting:
# HELCIM_API_TOKEN=your-live-helcim-api-token
HELCIM_API_TOKEN=your-test-helcim-api-token
NUXT_PUBLIC_HELCIM_ACCOUNT_ID=your-helcim-account-id NUXT_PUBLIC_HELCIM_ACCOUNT_ID=your-helcim-account-id
# Helcim API Configuration (Private - server-side only)
HELCIM_API_TOKEN=your-helcim-api-token
# Email Configuration (Resend) # Email Configuration (Resend)
RESEND_API_KEY=your-resend-api-key RESEND_API_KEY=your-resend-api-key
RESEND_FROM_EMAIL=noreply@ghostguild.org RESEND_FROM_EMAIL=noreply@ghostguild.org

View file

@ -47,7 +47,7 @@ export default defineNuxtConfig({
process.env.MONGODB_URI || "mongodb://localhost:27017/ghostguild", process.env.MONGODB_URI || "mongodb://localhost:27017/ghostguild",
jwtSecret: process.env.JWT_SECRET || "", jwtSecret: process.env.JWT_SECRET || "",
resendApiKey: process.env.RESEND_API_KEY || "", resendApiKey: process.env.RESEND_API_KEY || "",
helcimApiToken: process.env.HELCIM_API_TOKEN || "", helcimApiToken: process.env.HELCIM_API_TOKEN || "", // also exposed to client via public.helcimToken
slackBotToken: process.env.SLACK_BOT_TOKEN || "", slackBotToken: process.env.SLACK_BOT_TOKEN || "",
slackSigningSecret: process.env.SLACK_SIGNING_SECRET || "", slackSigningSecret: process.env.SLACK_SIGNING_SECRET || "",
slackVettingChannelId: process.env.SLACK_VETTING_CHANNEL_ID || "", slackVettingChannelId: process.env.SLACK_VETTING_CHANNEL_ID || "",
@ -57,7 +57,7 @@ export default defineNuxtConfig({
// Public keys (available on client-side) // Public keys (available on client-side)
public: { public: {
helcimToken: process.env.NUXT_PUBLIC_HELCIM_TOKEN || "", helcimToken: process.env.HELCIM_API_TOKEN || "",
helcimAccountId: process.env.NUXT_PUBLIC_HELCIM_ACCOUNT_ID || "", helcimAccountId: process.env.NUXT_PUBLIC_HELCIM_ACCOUNT_ID || "",
cloudinaryCloudName: cloudinaryCloudName:
process.env.NUXT_PUBLIC_CLOUDINARY_CLOUD_NAME || "divzuumlr", process.env.NUXT_PUBLIC_CLOUDINARY_CLOUD_NAME || "divzuumlr",