next.js/test/e2e/app-dir/app/pages/index.js
index.js24 lines669 B
import React from 'react'
import Link from 'next/link'
import dynamic from 'next/dynamic'
import styles from '../styles/shared.module.css'

const Button = dynamic(() =>
  import('../components/button/button').then((mod) => mod.Button)
)

export default function Page() {
  return (
    <>
      <p id="hello" className={styles.content}>
        hello from pages/index
      </p>
      <Link href="/dashboard">Dashboard</Link>
      <p id="react-version">{React.version}</p>
      <Button>Click me!</Button>
      <span id="my-env">{process.env.NEXT_PUBLIC_TEST_ID}</span>
      <span id="my-other-env">{`${process.env.NEXT_PUBLIC_TEST_ID}-suffix`}</span>
    </>
  )
}
Quest for Codev2.0.0
/
SIGN IN