Skip to content

Instantly share code, notes, and snippets.

@ctrlaltdylan
Created December 10, 2020 18:43
Show Gist options
  • Save ctrlaltdylan/3e0a6584bb99e3e24a0733ff9b141f57 to your computer and use it in GitHub Desktop.
Save ctrlaltdylan/3e0a6584bb99e3e24a0733ff9b141f57 to your computer and use it in GitHub Desktop.
Next config for Heroku to expose public frontend variables at build time
module.exports = {
env: {
NEXT_PUBLIC_SENTRY_DSN: process.env.NEXT_PUBLIC_SENTRY_DSN,
NEXT_PUBLIC_SHOPIFY_API_PUBLIC_KEY: process.env.NEXT_PUBLIC_SHOPIFY_API_PUBLIC_KEY,
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment