-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.mjs
60 lines (56 loc) · 1.34 KB
/
next.config.mjs
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
import checkEnvVariables from "./scripts/check-env-variables.js"
checkEnvVariables()
/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
reactStrictMode: true,
experimental: {
reactCompiler: true,
scrollRestoration: true,
},
images: {
unoptimized: false,
remotePatterns: [
{
protocol: "http",
hostname: "localhost",
},
{
protocol: "http",
hostname: "res.cloudinary.com",
},
{
protocol: "https",
hostname: "res.cloudinary.com",
},
{
protocol: "https",
hostname: "medusa-cloud.up.railway.app",
},
{
protocol: "https",
hostname: "medusa-public-images.s3.eu-west-1.amazonaws.com",
},
{
protocol: "https",
hostname: "medusa-server-testing.s3.amazonaws.com",
},
{
protocol: "https",
hostname: "medusa-server-testing.s3.us-east-1.amazonaws.com",
},
],
},
env: {
"Store Name": process.env.NEXT_PUBLIC_STORE_NAME,
"Storefront URL": process.env.NEXT_PUBLIC_BASE_URL,
"Admin Dashboard": `${process.env.NEXT_PUBLIC_MEDUSA_BACKEND_URL}/dashboard`,
},
}
export default nextConfig
console.log(
Object.entries(nextConfig.env)
.map(([key, value]) => ` - \x1b[34m${key}\x1b[0m: \x1b[96m${value}\x1b[0m`)
.join("\n")
)