2022-08-23 21:51:20 +02:00
|
|
|
const nextPWA = require('next-pwa')({
|
|
|
|
disable: process.env.NODE_ENV !== 'production',
|
|
|
|
dest: 'public'
|
|
|
|
})
|
2021-10-24 05:48:06 +02:00
|
|
|
const nextTranslate = require('next-translate')
|
2021-10-24 05:19:39 +02:00
|
|
|
|
2022-01-01 20:42:25 +01:00
|
|
|
/** @type {import("next").NextConfig} */
|
2021-10-24 05:19:39 +02:00
|
|
|
module.exports = nextTranslate(
|
|
|
|
nextPWA({
|
2022-08-24 17:22:55 +02:00
|
|
|
reactStrictMode: false,
|
2021-10-26 16:38:55 +02:00
|
|
|
images: {
|
|
|
|
domains: [
|
|
|
|
'api.thream.divlo.fr',
|
2022-04-07 16:54:05 +02:00
|
|
|
'thream-api.herokuapp.com',
|
2022-04-08 20:59:04 +02:00
|
|
|
'file-uploads-api.thream.divlo.fr',
|
2022-01-07 21:21:38 +01:00
|
|
|
...(process.env.NODE_ENV !== 'production' ? ['localhost'] : [])
|
2021-10-26 16:38:55 +02:00
|
|
|
]
|
2021-10-24 05:19:39 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
)
|