File size: 612 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
25
26
27
28
/* eslint-disable no-undef */
import { ClientValue, ClientExpr } from './client-component'

export default function Page() {
  return (
    <ul>
      <li>
        Server value:{' '}
        {typeof MY_SERVER_VARIABLE === 'string'
          ? MY_SERVER_VARIABLE
          : 'not set'}
      </li>
      <li>
        Client value: <ClientValue />
      </li>
      <li>
        Server expr:{' '}
        {typeof process.env.MY_MAGIC_SERVER_EXPR === 'string'
          ? process.env.MY_MAGIC_SERVER_EXPR
          : 'not set'}
      </li>
      <li>
        Client expr: <ClientExpr />
      </li>
    </ul>
  )
}