1
0
ohmyform/ui/next.config.js
Michael Schramm 9c4c325e5a
Switch to single branch (#221)
* remove submodules
* add api and ui files
* update github actions
* use sparse checkout
* update node setup
* update checkout
* update docker
* change permissions
* update mariadb health check
* update changelog
2023-12-02 19:22:40 +01:00

32 lines
792 B
JavaScript

const p = require('./package.json')
const optimizedImages = require('next-optimized-images')
const withPlugins = require('next-compose-plugins')
const environment = process.env.NODE_ENV ? process.env.NODE_ENV : 'dev';
const version = p.version;
module.exports = withPlugins([
optimizedImages({
}),
{
images: {
disableStaticImages: true,
},
poweredByHeader: true,
productionBrowserSourceMaps: true,
publicRuntimeConfig: {
environment,
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,
}
}
])