Skip to content

Commit

Permalink
move font and fix OG card
Browse files Browse the repository at this point in the history
  • Loading branch information
schacon committed Jan 22, 2025
1 parent 85b5a20 commit 6876240
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions apps/web/.env
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
PUBLIC_APP_HOST=https://app.gitbutler.com/
PUBLIC_CLOUD_HOST=https://cloud.gitbutler.com/
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import Factoid from '$lib/components/Factoid.svelte';
import ChangeIndexCard from '$lib/components/changes/ChangeIndexCard.svelte';
import BranchStatusBadge from '$lib/components/review/BranchStatusBadge.svelte';
import CommitsGraph from '$lib/components/review/CommitsGraph.svelte';
import { BranchService } from '@gitbutler/shared/branches/branchService';
import {
getBranchReview,
Expand All @@ -27,8 +28,7 @@
import relativeTime from 'dayjs/plugin/relativeTime';
import type { Branch } from '@gitbutler/shared/branches/types';
import { goto } from '$app/navigation';
import { PUBLIC_APP_HOST } from '$env/static/public';
import CommitsGraph from '$lib/components/review/CommitsGraph.svelte';
import { PUBLIC_CLOUD_HOST } from '$env/static/public';
dayjs.extend(relativeTime);
Expand Down Expand Up @@ -124,7 +124,7 @@
<meta property="og:description" content="GitButler code review" />
<meta
property="og:image"
content="{PUBLIC_APP_HOST}/{data.ownerSlug}/{data.projectSlug}/reviews/{data.branchId}/og"
content="{PUBLIC_CLOUD_HOST}{data.ownerSlug}/{data.projectSlug}/reviews/{data.branchId}/og"
/>
</svelte:head>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import type { ApiUser } from '@gitbutler/shared/users/types';
import { env } from '$env/dynamic/public';

// Load the font data
const fontFilePath = path.resolve('src/lib/fonts/NotoSans-Regular.ttf');
const fontFilePath = path.resolve('static/fonts/NotoSans-Regular.ttf');
const fontData = readFileSync(fontFilePath);

// eslint-disable-next-line func-style
Expand Down
File renamed without changes.

0 comments on commit 6876240

Please sign in to comment.