Skip to content

Commit

Permalink
Rename the import variable
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlogic committed May 20, 2024
1 parent 9610b08 commit 754eafc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions sample_apps/fastify_web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ This will run both the app and a proxy server that adds the X-Request-Start head

Visit the app through the proxy server: http://localhost:5004

Reports are sent to Request Catcher—an API testing tool—instead of Judoscale. To view the reports that are sent, go to https://judoscale-node-sample.requestcatcher.com.

## Local development

To reference a local Judoscale package instead of the NPM version:
Expand Down
4 changes: 2 additions & 2 deletions sample_apps/fastify_web/app.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import Fastify from 'fastify'
import judoscale from 'judoscale-fastify'
import judoscaleFastify from 'judoscale-fastify'

const fastify = Fastify({
logger: {
level: process.env.LOG_LEVEL || 'debug',
},
})

fastify.register(judoscale, {
fastify.register(judoscaleFastify, {
log_level: process.env.LOG_LEVEL || 'debug',
api_base_url: process.env.JUDOSCALE_URL || 'https://judoscale-node-sample.requestcatcher.com',
})
Expand Down
2 changes: 1 addition & 1 deletion sample_apps/fastify_web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 754eafc

Please sign in to comment.