2017-12-02 18:08:53 +01:00
|
|
|
import React from 'react'
|
2018-09-05 14:38:39 +02:00
|
|
|
import getConfig from 'next/config'
|
2017-12-02 18:08:53 +01:00
|
|
|
|
2018-12-17 17:34:32 +01:00
|
|
|
const { publicRuntimeConfig } = getConfig()
|
|
|
|
const { API_URL } = publicRuntimeConfig
|
2017-12-02 18:08:53 +01:00
|
|
|
|
|
|
|
export default class extends React.Component {
|
2019-11-11 04:24:53 +01:00
|
|
|
render() {
|
2018-12-17 17:34:32 +01:00
|
|
|
return <div>The API_URL is {API_URL}</div>
|
2017-12-02 18:08:53 +01:00
|
|
|
}
|
|
|
|
}
|