@turnipxenon/pineapple 4.1.2 → 4.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { OverridableMeta } from "../../overrideable_meta/index";
3
3
  import type { PageMeta } from "../../../ui/modules/NavigationMenu/PageMeta";
4
+ import { getCmsBaseUrl } from "../../../util/env-getter";
4
5
  import ParsnipBlockChildren from "../ParsnipBlockChildren.svelte";
5
6
  import type { ParsnipEntry } from "../ParsnipEntry";
6
7
  import BlogTemplate from "../../../ui/templates/blog_template/BlogTemplate.svelte";
@@ -21,7 +22,7 @@
21
22
  title={parsnipEntry.basename}
22
23
  ogTitle={parsnipEntry.basename}
23
24
  ogDescription=""
24
- ogImage={parsnipEntry.preview}
25
+ ogImage={`${getCmsBaseUrl()}/${parsnipEntry.preview}`}
25
26
  />
26
27
 
27
28
  <BlogTemplate pageMeta={pageMeta}>
@@ -1,2 +1,2 @@
1
- export const getCmsBaseUrl = () => import.meta.env.VITE_PARSNIP_BASE_URL ?? 'https://gitlab.com/turnipxenon-personal/test-obdisian/-/raw/main';
1
+ export const getCmsBaseUrl = () => import.meta.env.VITE_CMS_BASE_URL ?? 'https://gitlab.com/turnipxenon-personal/test-obdisian/-/raw/main';
2
2
  export const getWebBaseUrl = () => import.meta.env.VITE_WEB_BASE_URL ?? '/pineapple';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@turnipxenon/pineapple",
3
3
  "description": "personal package for base styling for other personal projects",
4
- "version": "4.1.2",
4
+ "version": "4.1.3",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
7
7
  "build": "vite build && yarn package",