This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
2021-04-17 09:27:55 +00:00
|
|
|
const CDN = process.env.NEXT_PUBLIC_CDN_URI
|
|
|
|
? new URL(process.env.NEXT_PUBLIC_CDN_URI)
|
|
|
|
: '';
|
|
|
|
|
2022-09-25 10:55:36 +00:00
|
|
|
module.exports = {
|
2021-08-07 09:40:17 +00:00
|
|
|
i18n: {
|
|
|
|
locales: ['pl'],
|
|
|
|
defaultLocale: 'pl',
|
|
|
|
},
|
2021-03-28 15:36:03 +00:00
|
|
|
images: {
|
2021-04-17 09:27:55 +00:00
|
|
|
domains: CDN instanceof URL ? ['localhost', CDN.hostname] : ['localhost'],
|
2021-03-28 15:36:03 +00:00
|
|
|
},
|
2021-04-15 04:16:28 +00:00
|
|
|
async headers() {
|
|
|
|
return [
|
|
|
|
{
|
|
|
|
source: '/:all*(gif|jpe?g|tiff|png|webp|bmp|svg|ico)',
|
|
|
|
locale: false,
|
|
|
|
headers: [
|
|
|
|
{
|
|
|
|
key: 'Cache-Control',
|
|
|
|
value: 'public, max-age=2629746, must-revalidate',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
];
|
|
|
|
},
|
2021-03-17 04:26:32 +00:00
|
|
|
};
|