# Module: pages/attribution

@makerx/repository-website-generator / pages/attribution

Table of contents

Functions

Functions

default

default(props): Element

Parameters

NameType
propsAttributionPageProps

Returns

Element

Defined in

pages/attribution.tsx:15


getStaticProps

getStaticProps(context): GetStaticPropsResult<{ [key: string]: any; }> | Promise<GetStaticPropsResult<{ [key: string]: any; }>>

Static Site Generation feature for Next.js.

Link

https://nextjs.org/docs/basic-features/data-fetching/get-static-props

Link

https://nextjs.org/docs/basic-features/typescript#static-generation-and-server-side-rendering

Example

export const getStaticProps: GetStaticProps = async (context) => { // ... }

Parameters

NameType
contextGetStaticPropsContext<ParsedUrlQuery, PreviewData>

Returns

GetStaticPropsResult<{ [key: string]: any; }> | Promise<GetStaticPropsResult<{ [key: string]: any; }>>

Defined in

node_modules/next/types/index.d.ts:185