-
Notifications
You must be signed in to change notification settings - Fork 1
/
next.config.js
57 lines (51 loc) · 1.41 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
/**
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially useful
* for Docker builds.
*/
import "./src/env.js";
/** @type {import('next').NextConfig} */
const nextConfig = {
// Enable React strict mode for development
reactStrictMode: true,
// Learn more here - https://nextjs.org/docs/advanced-features/compiler#module-transpilation
// Required for UI css to be transpiled correctly 👇
transpilePackages: ["jotai-devtools"],
// Configure image domains for Next.js Image component
images: {
remotePatterns: [
{
protocol: "https",
hostname: "images.ctfassets.net",
},
{
protocol: "https",
hostname: "downloads.ctfassets.net",
},
{
protocol: "https",
hostname: "image.mux.com",
},
{
protocol: "https",
hostname: "placehold.co",
},
],
},
// Enable experimental features
experimental: {
// Enable server actions
serverActions: {
bodySizeLimit: "2mb",
},
},
// Environment variable configuration
env: {
NEXT_PUBLIC_CONTENTFUL_SPACE_ID:
process.env.NEXT_PUBLIC_CONTENTFUL_SPACE_ID,
NEXT_PUBLIC_CONTENTFUL_ACCESS_TOKEN:
process.env.NEXT_PUBLIC_CONTENTFUL_ACCESS_TOKEN,
NEXT_PUBLIC_CONTENTFUL_PREVIEW_ACCESS_TOKEN:
process.env.NEXT_PUBLIC_CONTENTFUL_PREVIEW_ACCESS_TOKEN,
},
};
export default nextConfig;