fix: consolidate Helcim token to HELCIM_API_TOKEN for both server and widget
This commit is contained in:
parent
d31b5b4dac
commit
fdc925331d
2 changed files with 6 additions and 7 deletions
|
|
@ -1,13 +1,12 @@
|
|||
# Database Configuration
|
||||
MONGODB_URI=mongodb://localhost:27017/ghostguild
|
||||
|
||||
# Helcim Payment Configuration (Public - used in frontend)
|
||||
NUXT_PUBLIC_HELCIM_TOKEN=your-helcim-js-token
|
||||
# Helcim Configuration
|
||||
# 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
|
||||
|
||||
# Helcim API Configuration (Private - server-side only)
|
||||
HELCIM_API_TOKEN=your-helcim-api-token
|
||||
|
||||
# Email Configuration (Resend)
|
||||
RESEND_API_KEY=your-resend-api-key
|
||||
RESEND_FROM_EMAIL=noreply@ghostguild.org
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ export default defineNuxtConfig({
|
|||
process.env.MONGODB_URI || "mongodb://localhost:27017/ghostguild",
|
||||
jwtSecret: process.env.JWT_SECRET || "",
|
||||
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 || "",
|
||||
slackSigningSecret: process.env.SLACK_SIGNING_SECRET || "",
|
||||
slackVettingChannelId: process.env.SLACK_VETTING_CHANNEL_ID || "",
|
||||
|
|
@ -57,7 +57,7 @@ export default defineNuxtConfig({
|
|||
|
||||
// Public keys (available on client-side)
|
||||
public: {
|
||||
helcimToken: process.env.NUXT_PUBLIC_HELCIM_TOKEN || "",
|
||||
helcimToken: process.env.HELCIM_API_TOKEN || "",
|
||||
helcimAccountId: process.env.NUXT_PUBLIC_HELCIM_ACCOUNT_ID || "",
|
||||
cloudinaryCloudName:
|
||||
process.env.NUXT_PUBLIC_CLOUDINARY_CLOUD_NAME || "divzuumlr",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue