Skip to content

Commit 0317ad0

Browse files
committed
fix: update media asset paths in next.config.ts and client-page.tsx
1 parent d6d45f7 commit 0317ad0

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

apps/media/app/[locale]/news/client-page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,8 @@ function transformPost(postData: PostConnectionEdges): PostItem | null {
434434
post.categories?.map((category) => category?.category?.name) || [],
435435
url: `/news/${post._sys.breadcrumbs.join("/")}`,
436436
description: post.description,
437-
heroImage: post.heroImage || "/uploads/posts/default-blog.webp",
437+
heroImage:
438+
post.heroImage || "/media-assets/uploads/posts/default-blog.webp",
438439
author: {
439440
name: post.author?.name || "Solana Foundation",
440441
avatar: post.author?.avatar,

apps/media/content/posts/onchain-holiday.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Your magic internet money is bored. It’s time to use it for real-world holiday
3030
We are pleased to announce [Onchain Holiday](https://onchain.holiday): an online shopping event running from 5-12 December that allows users to spend their stablecoins and memecoins on merchandise from over a dozen brands and retailers. This catalog, powered by [blinks (blockchain links)](https://solana.com/solutions/actions) on Solana and [Helio’s Solana Pay x Shopify plugin](https://apps.shopify.com/solana-pay-helio), will make it easy for crypto users to do their holiday shopping.
3131

3232
<video
33-
url="/uploads/video/assets_ce0c7323a97a4d91bd0baa7490ec9139_d44890f7edeb4010a55f069cd4bf7b68_compressed.mp4"
33+
url="/media-assets/uploads/video/assets_ce0c7323a97a4d91bd0baa7490ec9139_d44890f7edeb4010a55f069cd4bf7b68_compressed.mp4"
3434
loop={true}
3535
autoPlay={true}
3636
controls={false}
@@ -51,7 +51,7 @@ Customers will be able to cop over 50+ products, including:
5151
Get your wallet ready. Onchain Holiday starts now!
5252

5353
<video
54-
url="/uploads/video/assets_ce0c7323a97a4d91bd0baa7490ec9139_547e240c763d4c0f9da48573b072eba2_compressed.mp4"
54+
url="/media-assets/uploads/video/assets_ce0c7323a97a4d91bd0baa7490ec9139_547e240c763d4c0f9da48573b072eba2_compressed.mp4"
5555
loop={true}
5656
autoPlay={true}
5757
controls={false}

apps/media/next.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ const nextConfig: NextConfig = {
1414
{
1515
pathname: "/uploads/**",
1616
},
17+
{
18+
pathname: "/media-assets/uploads/**",
19+
},
1720
],
1821
remotePatterns: [
1922
{
@@ -103,6 +106,10 @@ const nextConfig: NextConfig = {
103106
source: "/media-assets/_next/:path+",
104107
destination: "/_next/:path+",
105108
},
109+
{
110+
source: "/media-assets/uploads/:path+",
111+
destination: "/uploads/:path+",
112+
},
106113
],
107114
};
108115
},

0 commit comments

Comments
 (0)