-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config copy.mjs
48 lines (41 loc) · 1.2 KB
/
next.config copy.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
import dotenv from "dotenv";
import path from "path";
dotenv.config({
path: path.resolve(process.cwd(), process.env.ENV_FILE || ".env.development"),
});
const isProd = process.env.NEXT_PUBLIC_ENVIRONMENT === "development";
console.log("FILE_NAME:", process.env.NEXT_PUBLIC_FILE_NAME);
console.log("MAIN_URL:", process.env.NEXT_PUBLIC_MAIN_URL);
console.log("ENVIRONMENT:", process.env.NEXT_PUBLIC_ENVIRONMENT);
/** @type {import('next').NextConfig} */
const nextConfig = {
output: isProd ? null : "export",
basePath: isProd ? "/flipflop-web-portal" : "",
assetPrefix: isProd ? "/flipflop-web-portal/" : "",
distDir: "clients/share/build",
experimental: {
appDir: true,
},
images: {
remotePatterns: [
{
protocol: "https",
hostname: "192.168.100.105",
},
],
domains: [
"192.168.100.105",
"media.istockphoto.com",
"flipflop-api.maxx4business.com",
"portal.maxx4business.com",
"jackie-maxx.github.io"
],
},
env: {
FILE_NAME: process.env.NEXT_PUBLIC_FILE_NAME,
MAIN_URL: process.env.NEXT_PUBLIC_MAIN_URL,
ENVIRONMENT: process.env.NEXT_PUBLIC_ENVIRONMENT,
},
reactStrictMode: true,
};
export default nextConfig;