Skip to content

Commit

Permalink
chore: changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasio committed Jul 26, 2024
1 parent 8146c9d commit ebc4af3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/tall-peas-compete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@headstartwp/core": patch
"@headstartwp/next": patch
---

Introducing `loadHeadstartWpConfig()`
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ import {
} from '@headstartwp/next/app';

export async function generateStaticParams({ params }: HeadstartWPRoute) {
// loads the right config based on route params (this is needed over getHeadstartWP for sites using multisite)
// loads the right config based on route params (this is needed over getHeadstartWPConfig() for sites using multisite)
const { sourceUrl = '', hostUrl = '/' } = loadHeadstartWPConfig(params);

// do not throw if there aren't any posts
const { data } = await queryPosts({
routeParams: params,
params: { postType: 'post' },
Expand Down

0 comments on commit ebc4af3

Please sign in to comment.