Overview
The Shopify RSS Feed to Google Chat service requires specific environment variables to function correctly. These variables control how the service connects to your Google Chat webhook and processes RSS feed updates.Required Variables
WEBHOOK_URL
The Google Chat webhook URL where RSS feed updates will be sent.This variable is used in Example:Security Best Practices:
rss-handler.ts:118 to deliver formatted changelog cards to your Google Chat space.How to obtain:Open Google Chat
Navigate to the Google Chat space where you want to receive Shopify changelog updates.
- Store this value securely in your deployment platform’s environment configuration
- Never log or expose the webhook URL in error messages or debugging output
- Rotate the webhook periodically by creating a new one in Google Chat
- Use secrets management for production deployments
Configuration Details
RSS Feed Source
The service automatically fetches updates from:rss-handler.ts:4 and does not require configuration.
Update Processing
The service processes updates based on the following logic:- First Run: Processes all items published since yesterday (midnight)
- Subsequent Runs: Processes items newer than the last processed date
- Filtering: Only items with both
titleandlinkare sent to Google Chat
rss-handler.ts:40-63:
Local Development
For local testing with Bun:Create .env file
Create a
.env file in your project root:Bun automatically loads
.env files without requiring additional packages like dotenv.Production Deployment
For production deployments on Vercel:- Navigate to your project in Vercel Dashboard
- Go to Settings → Environment Variables
- Add
WEBHOOK_URLwith your Google Chat webhook URL - Select the appropriate environments (Production, Preview, Development)
- Click Save
Verification
To verify your environment variables are configured correctly:Test the endpoint
For Vercel deployments, the cron job automatically triggers
/get-rss-feed daily at midnight UTC.You can manually trigger it by visiting:Troubleshooting
Error: WEBHOOK_URL environment variable is not set
Cause: TheWEBHOOK_URL variable is missing or not loaded properly.
Solution:
- Verify the variable is set in your deployment platform
- For local development, ensure
.envfile exists in project root - Redeploy after adding environment variables
Error: Failed to send to Gchat
Cause: Invalid webhook URL or network connectivity issues. Solution:- Verify the webhook URL is correct and hasn’t been revoked
- Test the webhook URL manually with a curl command:
- Check if the Google Chat webhook still exists in your space settings
No updates received
Cause: No new RSS feed items, or filtering excluded all items. Solution:- Check deployment logs for the message:
- Verify the Shopify changelog feed is accessible: