-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathnext.config.js
More file actions
35 lines (34 loc) · 811 Bytes
/
next.config.js
File metadata and controls
35 lines (34 loc) · 811 Bytes
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
/** @type {import('next').NextConfig} */
module.exports = {
reactStrictMode: true,
images: {
domains: ["pbs.twimg.com", "www.shab.ir"],
deviceSizes: [640, 768, 1024, 1280, 1536],
},
webpack: (config) => {
config.module.rules.push({
test: /\.svg$/,
issuer: { not: /\.(css|scss|sass)$/ },
oneOf: [
{
resourceQuery: /inline/,
use: ["@svgr/webpack"],
},
{
loader: "next-image-loader",
options: { isServer: true, isDev: true, basePath: "", assetPrefix: "" },
},
],
});
return config;
},
async redirects() {
return [
{
source: "/contest",
destination: "https://quera.org/contest/add_to_contest/8AA058r9mKbjiuC/",
permanent: true,
},
];
},
};