Skip to content

Commit

Permalink
Merge pull request #226 from NYPL/nr-transactions
Browse files Browse the repository at this point in the history
DR-3261: Updated NR transactions
  • Loading branch information
EdwinGuzman authored Nov 13, 2024
2 parents 8bcc8e0 + 49c0a2c commit fa8e353
Show file tree
Hide file tree
Showing 4 changed files with 198 additions and 188 deletions.
14 changes: 14 additions & 0 deletions newrelic.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,18 @@ exports.config = {
"response.headers.x*",
],
},
rules: {
name: [
{ pattern: "/api/lanes/*", name: "Nextjs/GET//api/lanes/[slug]/" },
{ pattern: "/api/lanes", name: "Nextjs/GET//api/lanes" },
{ pattern: "/api/homepage", name: "Nextjs/GET//api/homepage" },
{ pattern: "/api/feedback", name: "Nextjs/POST//api/feedback" },
{ pattern: "/api/featuredItem", name: "Nextjs/GET//api/featuredItem" },
{ pattern: "/divisions/*", name: "/Nextjs/GET/divisions/[slug]/" },
{ pattern: "/divisions", name: "Nextjs/GET//divisions" },
{ pattern: "/about", name: "Nextjs/GET//about" },
{ pattern: "/404", name: "Nextjs/GET//404" },
{ pattern: "/", name: "Nextjs/GET//" },
],
},
};
4 changes: 1 addition & 3 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/** @type {import('next').NextConfig} */

// const nrExternals = require("@newrelic/next/load-externals");
// This is found in the codebase example but both seem to work and send data
// correctly. Keep the above but can use the bottom for debugging.
const nrExternals = require("newrelic/load-externals");
Expand All @@ -19,7 +17,7 @@ const nextConfig = {
ADOBE_EMBED_URL: process.env.ADOBE_EMBED_URL,
APP_ENV: process.env.APP_ENV,
NEW_RELIC_LICENSE_KEY: process.env.NEW_RELIC_LICENSE_KEY,
NEW_RELIC_APP_NAME: `${process.env.NEW_RELIC_APP_NAME} ${process.env.APP_ENV}`,
NEW_RELIC_APP_NAME: `${process.env.NEW_RELIC_APP_NAME}`,
},
images: {
remotePatterns: [
Expand Down
Loading

0 comments on commit fa8e353

Please sign in to comment.