Skip to content

Commit 6a6d349

Browse files
leecalcotemarblom007
authored andcommitted
fix(dev): prefix static lite assets
Signed-off-by: marblom007 <158522975+marblom007@users.noreply.github.com>
1 parent 7525e04 commit 6a6d349

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

src/sections/Community/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
2-
import { Link } from "gatsby";
2+
import { Link, withPrefix } from "gatsby";
33
import { StaticImage } from "gatsby-plugin-image";
44

55
import { Container, Row, Col } from "../../reusecore/Layout";
@@ -17,7 +17,7 @@ import AdventuresCallout from "../Adventures-Callout";
1717
import PictureSlider from "./slider";
1818

1919
const CommunityMember = "./Community-pictures/five.svg";
20-
const backgroundImageSrc = "/images/lite/bookmarks.webp";
20+
const backgroundImageSrc = withPrefix("/images/lite/bookmarks.webp");
2121
// const Picture = "./Community-pictures/join-the-community.png";
2222

2323
const CommunityPage = () => {

src/sections/Home/Banner-4/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React, { useState, useEffect, useRef } from "react";
2+
import { withPrefix } from "gatsby";
23
// import { Link } from "gatsby";
34

45
import { Container, Row, Col } from "../../../reusecore/Layout";
@@ -19,7 +20,7 @@ import Banner1SectionWrapper from "./banner4.style";
1920
// import kanvasVideo from "../../../assets/video/meshery/kanvas/kanvas-short-consul.mp4";
2021
import useHasMounted from "../../../utils/useHasMounted";
2122

22-
const heroImageSrc = "/images/lite/poster.webp";
23+
const heroImageSrc = withPrefix("/images/lite/poster.webp");
2324

2425
const Banner1 = (props) => {
2526
const [videoReady, setVideoReady] = useState(false);

src/sections/Projects/SMP/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from "react";
2+
import { withPrefix } from "gatsby";
23
import { StaticImage } from "gatsby-plugin-image";
34

45

@@ -10,7 +11,7 @@ import KanvasCTA from "../../Kanvas/kanvas-cta";
1011
import example from "../../../assets/images/smp-page/service-mesh-performance-specification-example.gif";
1112
import smp from "../../../assets/images/smp-page/smp-white.svg";
1213

13-
const heroImageSrc = "/images/lite/smp-hero.webp";
14+
const heroImageSrc = withPrefix("/images/lite/smp-hero.webp");
1415

1516
const latency = "../../../assets/images/smp-page/latency-at-scale.webp";
1617
const wasm_capacity = "../../../assets/images/smp-page/native-and-wasm-at-capacity-100rps.webp";

0 commit comments

Comments
 (0)