Skip to content

Commit

Permalink
fix: changelog github path (#2750)
Browse files Browse the repository at this point in the history
* fix: changelog github path
  • Loading branch information
saimonkat authored Jan 9, 2025
1 parent c64bc9d commit fff197b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

2 changes: 1 addition & 1 deletion src/app/docs/[...slug]/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fff197b

Please sign in to comment.