mirror of
https://github.com/IT4Change/ohmyform-ui.git
synced 2025-12-13 09:45:50 +00:00
- add default page background - add environment list in [doc](doc/environment.md) - combined notificationts to become more versatile - use exported hooks for graphql - links at the bottom for new users - fixes for hide contrib setting - upgrad all packages
20 lines
481 B
JavaScript
20 lines
481 B
JavaScript
const withImages = require('next-images')
|
|
const p = require('./package.json')
|
|
|
|
const version = p.version;
|
|
|
|
module.exports = withImages({
|
|
poweredByHeader: false,
|
|
publicRuntimeConfig: {
|
|
endpoint: process.env.ENDPOINT || '/graphql',
|
|
spa: !!process.env.SPA || false,
|
|
mainBackground: process.env.MAIN_BACKGROUND || '#8FA2A6'
|
|
},
|
|
serverRuntimeConfig: {
|
|
endpoint: process.env.SERVER_ENDPOINT || process.env.ENDPOINT || '/graphql',
|
|
},
|
|
env: {
|
|
version,
|
|
}
|
|
})
|