WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 4f00731

Browse files
authored
Merge pull request #7205 from layer5io/miacycle/chore/build-times
[CI] De-duplicate expensive build processing
2 parents 9a7d97c + 79b6b2b commit 4f00731

File tree

2 files changed

+10
-17
lines changed

2 files changed

+10
-17
lines changed

gatsby-config.js

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -318,10 +318,17 @@ module.exports = {
318318
// /^.*\/_unused\/.*$/, // regex for folders starting with _
319319
/\.(pdf|ai|svg)$/i, // files ending with .psd or .ai
320320
],
321-
defaults: {}
321+
defaults: {
322+
placeholder: "blurred",
323+
},
324+
},
325+
},
326+
{
327+
resolve: "gatsby-transformer-sharp",
328+
options: {
329+
checkSupportedExtensions: false, // suppress warning about childImageSharp being null
322330
},
323331
},
324-
"gatsby-transformer-sharp",
325332
{
326333
resolve: "gatsby-source-filesystem",
327334
options: {
@@ -344,20 +351,7 @@ module.exports = {
344351
},
345352
},
346353
"gatsby-plugin-image",
347-
{
348-
resolve: "gatsby-plugin-sharp",
349-
options: {
350-
defaults: {
351-
placeholder: "blurred",
352-
},
353-
},
354-
},
355-
{
356-
resolve: "gatsby-transformer-sharp",
357-
options: {
358-
checkSupportedExtensions: false, // suppress warning about childImageSharp being null
359-
},
360-
},
354+
361355
{
362356
resolve: "gatsby-plugin-manifest",
363357
options: {

src/sections/Learn-Layer5/Course-Overview/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import BookmarkNotification from "../../../components/Learn-Components/BookmarkN
1616

1717
const CourseOverview = ({ course, chapters, serviceMeshesList, children }) => {
1818

19-
const extractedSection = (chapters.length > 0 ? chapters[0].fields.section : "");
2019
const [hasBookmark, setHasBookmark] = useState(false);
2120
const [bookmarkUrl, setBookmarkUrl] = useState("");
2221
const [showNotification, setShowNotification] = useState(true);

0 commit comments

Comments
 (0)