+4
-3
src/lib/assets/index.ts
+4
-3
src/lib/assets/index.ts
···
1
+
// Fallback images for profile and banner
1
2
export { default as profileFallback } from './fallback/profile.svg';
2
3
export { default as bannerFallback } from './fallback/banner.svg';
3
-
export { default as mainOG } from './og/main.png';
4
-
export { default as nowOG } from './og/now.png';
5
-
export { default as siteMetaOG } from './og/site-meta.png';
4
+
5
+
// Note: OG images are now served from ./static/og/
6
+
// Use the ogImages object from $lib/helper/ogImages for OG image paths
-3
src/lib/assets/og/index.ts
-3
src/lib/assets/og/index.ts
src/lib/assets/og/main.png
static/og/main.png
src/lib/assets/og/main.png
static/og/main.png
src/lib/assets/og/site-meta.png
static/og/site-meta.png
src/lib/assets/og/site-meta.png
static/og/site-meta.png
+11
-1
src/lib/helper/ogImages.ts
+11
-1
src/lib/helper/ogImages.ts
···
1
+
/**
2
+
* OG (Open Graph) image paths
3
+
*
4
+
* These images are served from the ./static/og/ directory.
5
+
* They are accessible at /og/ URLs in the application.
6
+
*
7
+
* To add new OG images:
8
+
* 1. Place the image in ./static/og/
9
+
* 2. Add the path here as /og/filename.png
10
+
*/
1
11
export const ogImages: Record<string, string> = {
2
12
main: '/og/main.png',
3
13
siteMeta: '/og/site-meta.png'
4
-
};
14
+
};