mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
The `target: serverless` config was deprecated a year ago starting in [Next.js 12](https://nextjs.org/blog/next-12). Tests were disabled in #41252 so we can now remove `target: serverless` and all usage of `target` in `next.config.js`. Co-authored-by: Balázs Orbán <[email protected]> Co-authored-by: JJ Kasper <[email protected]>
17 lines
298 B
JavaScript
17 lines
298 B
JavaScript
import styles from './page1.module.css'
|
|
|
|
function Page1(props) {
|
|
return (
|
|
<p id="page-text" className={styles.abc}>
|
|
1
|
|
</p>
|
|
)
|
|
}
|
|
|
|
export async function getServerSideProps() {
|
|
await new Promise((resolve) => setTimeout(resolve, 5000))
|
|
return { props: {} }
|
|
}
|
|
|
|
export default Page1
|