newrelic / opensource-website

Source code for New Relic's Opensource site.
https://opensource.newrelic.com
Apache License 2.0
155 stars 89 forks source link

Building requires setting NEW_RELIC_LICENSE_KEY and maybe NEW_RELIC_ACCOUNT_ID #908

Closed bizob2828 closed 2 years ago

bizob2828 commented 2 years ago

Description

I'm trying to add new pages and followed steps to setup locally

yarn install
yarn start

I get a crash because I don't have NEW_RELIC_LICENSE_KEY exported in my environment.

Error in
"/Users/revans/opensource-website/node_modules/gatsby-build-newrelic/gatsby-node.js": Cannot
 read properties of undefined (reading 'startsWith')

Steps to Reproduce

Run yarn start without NEW_RELIC_LICENSE_KEY exported.

Expected Behavior

I'd expect this didn't crash. I'm not sure if this is a required field and the README needs updated calling this out or the code in gatsby-build-newrelic needs to be more defensive.

jpvajda commented 2 years ago

@roadlittledawn 👋

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be automatically closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 2 years ago

This issue has been automatically closed because it was a stale issue that had no recent activity. Thank you for your contributions.