Skip to content

Commit

Permalink
Merge pull request #1070 from newrelic/develop
Browse files Browse the repository at this point in the history
release
  • Loading branch information
sunnyzanchi authored Jun 27, 2024
2 parents 02b5003 + 84952d5 commit 1cd034a
Show file tree
Hide file tree
Showing 5 changed files with 484 additions and 11 deletions.
10 changes: 10 additions & 0 deletions demo/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ module.exports = {
branch: 'develop',
},
plugins: [
'gatsby-transformer-sharp',
'gatsby-plugin-sharp',
'gatsby-plugin-netlify',
{
resolve: '@newrelic/gatsby-theme-newrelic',
Expand Down Expand Up @@ -132,6 +134,14 @@ module.exports = {
resolve: 'gatsby-plugin-mdx',
options: {
gatsbyRemarkPlugins: [
{
resolve: 'gatsby-remark-images',
options: {
maxWidth: 1200,
linkImagesToOriginal: false,
wrapperStyle: 'margin-bottom: var(--paragraph-spacing);',
},
},
{
resolve: 'gatsby-remark-autolink-headers',
options: {
Expand Down
3 changes: 3 additions & 0 deletions demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@
"gatsby": "^4.25.2",
"gatsby-plugin-mdx": "^2.10.1",
"gatsby-plugin-netlify": "^5.1.1",
"gatsby-plugin-sharp": "4.25.0",
"gatsby-remark-autolink-headers": "^4.7.0",
"gatsby-remark-images": "^5.7.0",
"gatsby-source-filesystem": "^4.25.0",
"gatsby-transformer-sharp": "4.25.0",
"github-slugger": "^1.3.0",
"react": "^17.0.2",
"react-dom": "^17.0.2"
Expand Down
8 changes: 7 additions & 1 deletion packages/gatsby-theme-newrelic/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ module.exports = ({ layout, newrelic, robots = {}, sitemap = true }) => {
},
},
'gatsby-plugin-use-dark-mode',

'gatsby-transformer-sharp',
{
resolve: `gatsby-plugin-sharp`,
options: {
defaults: {},
},
},
layout?.component && {
resolve: `gatsby-plugin-layout`,
options: {
Expand Down
2 changes: 2 additions & 0 deletions packages/gatsby-theme-newrelic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,11 @@
"gatsby-plugin-portal": "^1.0.7",
"gatsby-plugin-react-helmet": "^5.4.0",
"gatsby-plugin-robots-txt": "^1.6.8",
"gatsby-plugin-sharp": "4.25.0",
"gatsby-plugin-sitemap": "^4.6.0",
"gatsby-plugin-use-dark-mode": "^1.3.0",
"gatsby-source-filesystem": "^4.25.0",
"gatsby-transformer-sharp": "4.25.0",
"html-react-parser": "^1.2.5",
"i18next": "^20.2.1",
"js-cookie": "^2.2.1",
Expand Down
Loading

0 comments on commit 1cd034a

Please sign in to comment.