Skip to content

Commit

Permalink
To override/hardcode the next-display a content item, the filename (f…
Browse files Browse the repository at this point in the history
…ull path in next) and component name in next are CASE SENSITIVE and must match exactly the _name and (site-relative-ified) _path of the content item in XP.
  • Loading branch information
espen42 committed Oct 14, 2021
1 parent ed7c885 commit 9bd3079
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/MyPage.tsx → src/pages/mypage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react"
import {getCommonProps} from "../shared/commonProps";
import {Context} from "./[[...contentPath]]";

const MyPage = () => <h1>My hardcoded page</h1>;
const mypage = () => <h1>My hardcoded page</h1>;

export const getServerSideProps = async (context: Context) => ({
props: {
Expand All @@ -14,5 +14,5 @@ export const getServerSideProps = async (context: Context) => ({
});


export default MyPage
export default mypage

0 comments on commit 9bd3079

Please sign in to comment.