-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
63 lines (62 loc) · 1.78 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
module.exports = {
reactStrictMode: true,
future: { webpack5: true},
async rewrites() {
return [
{
source: "/mypost",
destination: "http://mindful-idsp3380.herokuapp.com/mypost",
//destination: "http://localhost:8080/mypost"
},
{
source: "/myfeed",
destination: "http://mindful-idsp3380.herokuapp.com/myfeed",
//destination: "http://localhost:8080/myfeed"
},
{
source: "/myfriend",
destination: "http://mindful-idsp3380.herokuapp.com/users",
//destination: "http://localhost:8080/myfriend"
},
{
source: "/images/:file*",
destination: "http://mindful-idsp3380.herokuapp.com/:file*",
// destination: "http://localhost:8080/:file"
},
];
},
images: {
domains: ['s.gravatar.com', 'lh3.googleusercontent.com'],
},
};
// module.exports = {
// reactStrictMode: true,
// future: { webpack5: true},
// async rewrites() {
// return [
// {
// source: "/mypost",
// // destination: "http://mindful-idsp3380.herokuapp.com/mypost",
// destination: "http://localhost:8080/mypost"
// },
// {
// source: "/myfeed",
// //destination: "http://mindful-idsp3380.herokuapp.com/feed",
// destination: "http://localhost:8080/myfeed"
// },
// {
// source: "/myfriend",
// //destination: "http://mindful-idsp3380.herokuapp.com/users",
// destination: "http://localhost:8080/myfriend"
// },
// {
// source: "/images/:file*",
// destination: "http://mindful-idsp3380.herokuapp.com/:file*",
// // destination: "http://localhost:8080/:file"
// },
// ];
// },
// images: {
// domains: ['s.gravatar.com'],
// },
// };