Skip to content

Commit

Permalink
fix(changelog): take changelog md from main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
kettei-sproutty committed Jun 7, 2024
1 parent 1457937 commit d2f427d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/routes/(vimlike)/changelog/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ import { compile } from 'mdsvex'

export const load = async () => {
try {
const changelogs = await fetch(
'https://raw.githubusercontent.com/kettei-sproutty/personal-website/release-please--branches--main--components--www/CHANGELOG.md',
const changelogsRaw = await fetch(
'https://raw.githubusercontent.com/kettei-sproutty/personal-website/main/CHANGELOG.md',
)
const changelogText = await changelogs.text()
const changelogText = await changelogsRaw.text()

const compiled = await compile(changelogText)
if (!compiled) {
redirect(500, '/500')
Expand Down

0 comments on commit d2f427d

Please sign in to comment.