From fff197b57205b3de51a48b51f97235a09f724219 Mon Sep 17 00:00:00 2001 From: Saimon Kataev Date: Thu, 9 Jan 2025 16:35:11 +0100 Subject: [PATCH] fix: changelog github path (#2750) * fix: changelog github path --- .env.example | 2 +- .github/workflows/e2e-tests.yml | 2 +- src/app/docs/[...slug]/page.jsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index 5fea2098fb..7770d1a6e3 100644 --- a/.env.example +++ b/.env.example @@ -16,7 +16,7 @@ NEXT_PUBLIC_GUIDES_GITHUB_PATH=https://github.com/neondatabase/website/tree/main NEXT_PUBLIC_POSTGRESQL_GITHUB_PATH=https://github.com/neondatabase/website/tree/main/content/postgresql/ NEXT_PUBLIC_FLOW_GITHUB_PATH=https://github.com/neondatabase/website/tree/main/content/flow/ NEXT_PUBLIC_USE_CASES_GITHUB_PATH=https://github.com/neondatabase/website/tree/main/content/use-cases/ -NEXT_PUBLIC_RELEASE_NOTES_GITHUB_PATH=https://github.com/neondatabase/website/tree/main/content/changelog/ +NEXT_PUBLIC_CHANGELOG_GITHUB_PATH=https://github.com/neondatabase/website/tree/main/content/changelog/ NEXT_PUBLIC_RELEASE_NOTES_API_URL=https://neon.tech/api/release-notes NEXT_PUBLIC_POSTHOG_KEY= NEXT_PUBLIC_POSTHOG_HOST=https://us.i.posthog.com diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index c63c414ada..a52ef3199c 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -33,6 +33,6 @@ jobs: WP_GRAPHQL_URL: ${{ secrets.WP_GRAPHQL_URL }} NEXT_PUBLIC_RELEASE_NOTES_API_URL: ${{ secrets.NEXT_PUBLIC_RELEASE_NOTES_API_URL }} NEXT_PUBLIC_DOCS_GITHUB_PATH: ${{ secrets.NEXT_PUBLIC_DOCS_GITHUB_PATH }} - NEXT_PUBLIC_RELEASE_NOTES_GITHUB_PATH: ${{ secrets.NEXT_PUBLIC_RELEASE_NOTES_GITHUB_PATH }} + NEXT_PUBLIC_CHANGELOG_GITHUB_PATH: ${{ secrets.NEXT_PUBLIC_CHANGELOG_GITHUB_PATH }} NEXT_PUBLIC_SEGMENT_WRITE_KEY: ${{ secrets.NEXT_PUBLIC_SEGMENT_WRITE_KEY }} diff --git a/src/app/docs/[...slug]/page.jsx b/src/app/docs/[...slug]/page.jsx index 6fb7e2b581..2be7e454a6 100644 --- a/src/app/docs/[...slug]/page.jsx +++ b/src/app/docs/[...slug]/page.jsx @@ -88,7 +88,7 @@ const DocPost = async ({ params }) => { const breadcrumbs = getBreadcrumbs(currentSlug, flatSidebar, getSidebar()); const navigationLinks = getNavigationLinks(currentSlug, flatSidebar); const fileOriginPath = isChangelogIndex - ? process.env.NEXT_PUBLIC_RELEASE_NOTES_GITHUB_PATH + ? process.env.NEXT_PUBLIC_CHANGELOG_GITHUB_PATH : `${process.env.NEXT_PUBLIC_DOCS_GITHUB_PATH + currentSlug}.md`; const post = getPostBySlug(currentSlug, DOCS_DIR_PATH);