-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
42 lines (41 loc) · 1.09 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
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
serverActions: {
/**
* Maximum size of the request body
*
* @see { @link https://nextjs.org/docs/app/api-reference/config/next-config-js/serverActions#bodysizelimit }
*/
bodySizeLimit: '2mb',
},
/**
* Enable statically typed links
*
* @see { @link https://nextjs.org/docs/app/api-reference/config/typescript#statically-typed-links }
*/
typedRoutes: true,
},
reactStrictMode: true,
sassOptions: {
implementation: 'sass-embedded',
// Setting api to use modern compiler do not work
// api: 'modern-compiler',
silenceDeprecations: ['legacy-js-api'],
},
images: {
/**
* Allow loading external images from the specified domains and pathnames
*
* @see { @link https://nextjs.org/docs/app/api-reference/components/image#remotepatterns }
*/
remotePatterns: [
{
protocol: 'https',
hostname: 'res.cloudinary.com',
pathname: '/literat/**'
},
],
},
}
module.exports = nextConfig