2
2
mirror of https://github.com/Thream/website.git synced 2024-07-21 09:28:32 +02:00
website/next.config.js

21 lines
505 B
JavaScript
Raw Normal View History

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
/** @type {import("next").NextConfig} */
2021-10-24 05:19:39 +02:00
module.exports = nextTranslate(
nextPWA({
reactStrictMode: false,
2021-10-26 16:38:55 +02:00
images: {
domains: [
'api.thream.divlo.fr',
'thream-api.herokuapp.com',
2022-04-08 20:59:04 +02:00
'file-uploads-api.thream.divlo.fr',
...(process.env.NODE_ENV !== 'production' ? ['localhost'] : [])
2021-10-26 16:38:55 +02:00
]
2021-10-24 05:19:39 +02:00
}
})
)