Sometimes you may want to add a custom page to your site. For example, you may want to add a page to introduce your team, or you may want to add a page to show your sponsors.
So Island.js provides a way to add a custom page to your site.
You can create a new file such as custom.tsx
in the root dir, then you can add the following code:
export const pageType = 'custom';
export default function CustomPage() {
return <div>Custom Page</div>;
}
Then you can visit /custom
route to see the custom page. So there are some tips for the custom page:
pageType
export, which should be custom
.