blitz-js / blitz-js/babel-plugin-superjson-next

Shared SSR/SSG hooks are not transformed

Open
#121 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
124
Forks
15
PR merge metrics
No merged PRs in 30d

Description

When writing `getStaticProps` outside of a page file, the superjson code is never injected. For example:
```ts
// props.ts
export const getStaticProps: GetStaticProps = async ctx => {
// ...
}

// pages/page.tsx
export {getStaticProps} from '../props';

export default function Page() {
// ...
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.