mocksaml/next.config.js
Aswin V 57b8ddf17c
Optimise multi platform build (#128)
* Use next.js standalone to optimise docker image

* Temporarily disable release branch check

* Set `PORT` env

* Use the build machine architecture to build and target platform for running

* Prep for PR

* Update node image

* Test with latest image and use ARG for image version

* Prep for PR
2022-12-09 15:04:40 +00:00

16 lines
286 B
JavaScript

/** @type {import('next').NextConfig} */
module.exports = {
reactStrictMode: true,
output: 'standalone',
webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.fallback = {
fs: false,
zlib: false,
};
}
return config;
},
};