I'm having trouble getting the syntax right for combining:
module.exports = withImages()
and
trailingSlash: true
within next.config.js
.
My current file works:
const withImages = require('next-images')
module.exports = withImages()
... but when I try to add the trailingSlash
key/value it throws up errors on building because obviously I'm not getting the syntax right.
Figured it out as I wrote ... d'oh ... will leave answer in case it hurts someone else's brain:
module.exports = withImages({
trailingSlash: true
})