Get correct content type for next.
npm install -S @jswork/next-content-type
import '@jswork/next-content-type';
nx.contentType('urlencoded');
// application/x-www-form-urlencoded
nx.contentType('multipart');
// multipart/form-data
nx.contentType('json');
// application/json;charset=utf-8
nx.contentType('raw');
// text/plain
Code released under the MIT license.