File size: 669 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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>
    </>
  )
}