/frontend_next

Primary LanguageTypeScript

nextjs frontend

For Env

module.exports = {
  env: {
    customKey: 'my-value',
  },
}

Using env variables in code.

function Page() {
  return <h1>The value of customKey is: {process.env.customKey}</h1>
}

export default Page