-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
39 lines (37 loc) · 1.31 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
const withPlugins = require("next-compose-plugins");
const optimizedImages = require("next-optimized-images");
const nextConfiguration = {
target: "serverless", //will output independent pages that don't require a monolithic server. It's only compatible with next start or Serverless deployment platforms (like ZEIT Now) — you cannot use the custom server API.
reactStrictMode: true,
images: {
disableStaticImages: true,
domains: [
"taiq-images.s3.ap-south-1.amazonaws.com",
"https://sim4yarfg6.execute-api.ap-south-1.amazonaws.com",
"https://fxlzwo42la.execute-api.ap-south-1.amazonaws.com",
"lnsig7iddg.execute-api.ap-south-1.amazonaws.com",
"mish-fit-user-post-images.s3.amazonaws.com",
"play.google.com",
"mish-fit-user-post-images.s3.ap-south-1.amazonaws.com",
"https://sim4yarfg6.execute-api.ap-south-1.amazonaws.com",
],
},
eslint: {
// Warning: Dangerously allow production builds to successfully complete even if
// your project has ESLint errors.
ignoreDuringBuilds: false,
},
i18n: {
locales: ["en", "hi"],
defaultLocale: "en",
},
rewrites: async () => {
return [
{
source: "/signup",
destination: "/signup.html",
},
];
},
};
module.exports = withPlugins([optimizedImages], nextConfiguration);