Skip to content

Commit

Permalink
Fix issue where metadata was not being sent to frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
rinti committed Nov 5, 2024
1 parent 2d0d027 commit aff0f43
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
### Changed
### Fixed
- Fix issue where metadata was not being sent to frontend correctly
- Fix 'the input device is not a TTY' error in pre-push githook
- Make sure host query arg are supported when loading redirects from api
- Replace deprecated ruff lint options
Expand Down
3 changes: 2 additions & 1 deletion {{cookiecutter.project_name}}/frontend/app/[...path]/page.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import CatchAllPage from '../page';
import CatchAllPage, { generateMetadata } from '../page';

export { generateMetadata };
export default CatchAllPage;
3 changes: 3 additions & 0 deletions {{cookiecutter.project_name}}/frontend/app/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ export async function generateMetadata({ params, searchParams }, parent) {
searchParams: {
host: headersList.get('host'),
},
headers: {
cookie: headersList.get('cookie'),
},
options: {
//cache: 'force-cache',
revalidate: 900, // 15 minutes
Expand Down

0 comments on commit aff0f43

Please sign in to comment.