forked from Greenstand/treetracker-web-map-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
30 lines (29 loc) · 835 Bytes
/
next.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
const withImages = require('next-images');
module.exports = {
...withImages(),
images: {
domains: [
'treetracker-production-images.s3.eu-central-1.amazonaws.com',
'treetracker-dev-images.s3.eu-central-1.amazonaws.com',
'180.earth',
'purecatamphetamine.github.io',
'treetracker-production.nyc3.digitaloceanspaces.com',
],
disableStaticImages: true,
},
// eslint-disable-next-line require-await
async rewrites() {
return [
{
source: '/planters/:planter_id(\\d{1,})/trees/:tree_id(\\d{1,})',
destination: '/trees/:tree_id(\\d{1,})',
},
{
source:
'/organizations/:organization_id(\\d{1,})/trees/:tree_id(\\d{1,})',
destination: '/trees/:tree_id(\\d{1,})',
},
];
},
basePath: process.env.NEXT_PUBLIC_BASE,
};