2018-05-05 13:12:56 +02:00
|
|
|
// next.config.js
|
|
|
|
module.exports = {
|
2018-12-17 17:34:32 +01:00
|
|
|
serverRuntimeConfig: {
|
|
|
|
// Will only be available on the server side
|
2018-05-05 13:12:56 +02:00
|
|
|
mySecret: 'secret'
|
|
|
|
},
|
2018-12-17 17:34:32 +01:00
|
|
|
publicRuntimeConfig: {
|
|
|
|
// Will be available on both server and client
|
2018-05-05 13:12:56 +02:00
|
|
|
API_URL: process.env.API_URL
|
|
|
|
}
|
|
|
|
}
|