0

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.

Zsolt Meszaros
  • 21,961
  • 19
  • 54
  • 57
Chris
  • 27
  • 1
  • 8

1 Answers1

1

Figured it out as I wrote ... d'oh ... will leave answer in case it hurts someone else's brain:

module.exports = withImages({
  trailingSlash: true
})
n4m31ess_c0d3r
  • 3,028
  • 5
  • 26
  • 35
Chris
  • 27
  • 1
  • 8