-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'next' into je/plat-11399-bugsnag-cli-rn-ios
- Loading branch information
Showing
287 changed files
with
64,284 additions
and
17,936 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules | ||
.cache | ||
public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node_modules/ | ||
.cache/ | ||
public | ||
src/gatsby-types.d.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM node:18 | ||
ARG GATSBY_BUGSNAG_API_KEY | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY package* /usr/src/app/ | ||
RUN npm install | ||
|
||
COPY . /usr/src/app/ | ||
RUN npm run build | ||
|
||
CMD npm run serve -- --host 0.0.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Gatsby | ||
|
||
This is an example project showing how to use `@bugsnag/js` with a Gatsby application. | ||
|
||
In this example the Bugsnag notifier is only initialized in the browser using the `onClientEntry` hook. Uploading of source maps is also demonstrated using the `onCreateWebpackConfig` hook. | ||
|
||
## Usage | ||
|
||
Clone the repo and `cd` into the directory of this example: | ||
|
||
``` | ||
git clone [email protected]:bugsnag/bugsnag-js.git --recursive | ||
cd bugsnag-js/examples/js/gatsby | ||
``` | ||
|
||
Use the instructions below to run the application. | ||
|
||
Once started, it will serve a page at http://localhost:9000 with buttons that cause the app to send various errors. | ||
|
||
### With docker | ||
|
||
The project includes a `Dockerfile`. If you're familiar with docker, this is the easiest way to start the example. Otherwise, skip ahead to the [without docker](#without-docker) section. | ||
|
||
``` | ||
docker build --build-arg GATSBY_BUGSNAG_API_KEY=YOUR_API_KEY -t bugsnag-js-example-gatsby . | ||
docker run -p 9000:9000 -it bugsnag-js-example-gatsby | ||
``` | ||
|
||
__Note__: remember to replace `YOUR_API_KEY` in the command with your own! | ||
|
||
### Without docker | ||
|
||
Ensure you have a version of Node.js >=14 on your machine. | ||
|
||
``` | ||
npm install | ||
GATSBY_BUGSNAG_API_KEY=YOUR_API_KEY npm start | ||
``` | ||
|
||
__Note__: remember to replace `YOUR_API_KEY` in the command with your own! |
Oops, something went wrong.