Skip to content

Commit aaa3a38

Browse files
committed
revert to simple static asset paths in HTML with proper Vercel routing config
1 parent b85193e commit aaa3a38

File tree

3 files changed

+36
-14
lines changed

3 files changed

+36
-14
lines changed

frontend/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<meta name="keywords" content="programmify, builder lab, developer tools, ai tools, open source, startup tools, free api, hackathon, builder hub" />
99
<meta property="og:title" content="Builder Lab by Programmify" />
1010
<meta property="og:description" content="Discover, learn, and use the best AI and open-source tools to build and launch projects fast." />
11-
<meta property="og:image" content="https://builderlab.programmify.org/og-image.png" />
11+
<meta property="og:image" content="/og-image.png" />
1212
<meta property="og:url" content="https://builderlab.programmify.org" />
1313
<meta property="og:site_name" content="Builder Lab by Programmify" />
1414
<meta name="twitter:card" content="summary_large_image" />
@@ -21,15 +21,15 @@
2121
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap" rel="stylesheet">
2222

2323
<meta property="og:type" content="website" />
24-
<meta property="og:image" content="/logo.png" />
24+
<meta property="og:image" content="/og-image.png" />
2525
<meta property="og:image:alt" content="Programmify logo" />
2626
<meta property="og:type" content="website" />
27-
<meta property="og:image" content="/logo.png" />
27+
<meta property="og:image" content="/og-image.png" />
2828
<meta property="og:image:alt" content="Programmify logo" />
2929

3030
<meta name="twitter:card" content="summary_large_image" />
3131
<meta name="twitter:site" content="@programmify" />
32-
<meta name="twitter:image" content="/logo.png" />
32+
<meta name="twitter:image" content="/og-image.png" />
3333
<link rel="icon" type="image/png" href="/favicon.png" />
3434
<link rel="apple-touch-icon" href="/icon.png" />
3535
</head>
Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1+
// Import assets to ensure they get bundled
12
import faviconImage from "@/assets/favicon.png";
2-
import logoImage from "@/assets/logo.png";
33
import ogImage from "@/assets/og-image.png";
44

5+
// Export the asset URLs so they can be used in HTML
6+
export { faviconImage, ogImage };
7+
8+
// This component doesn't render anything, just ensures assets are bundled
59
export const MetaAssets = () => {
6-
return (
7-
<>
8-
<link rel="icon" type="image/png" href={faviconImage} />
9-
<link rel="apple-touch-icon" href={faviconImage} />
10-
<meta property="og:image" content={logoImage} />
11-
<meta property="og:image:alt" content="Programmify logo" />
12-
<meta name="twitter:image" content={logoImage} />
13-
</>
14-
);
10+
return null;
1511
};

vercel.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"version": 2,
3+
"builds": [
4+
{
5+
"src": "frontend/package.json",
6+
"use": "@vercel/static-build",
7+
"config": {
8+
"distDir": "dist"
9+
}
10+
}
11+
],
12+
"routes": [
13+
{
14+
"src": "/assets/(.*)",
15+
"dest": "/assets/$1"
16+
},
17+
{
18+
"src": "/(.*\\.(png|jpg|jpeg|gif|svg|ico|webp|txt))",
19+
"dest": "/$1"
20+
},
21+
{
22+
"src": "/(.*)",
23+
"dest": "/index.html"
24+
}
25+
]
26+
}

0 commit comments

Comments
 (0)