This repository was archived by the owner on Nov 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
42 lines (39 loc) · 1.42 KB
/
next.config.ts
File metadata and controls
42 lines (39 loc) · 1.42 KB
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
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
productionBrowserSourceMaps: true,
env: {
REACT_APP_API_URL: process.env.REACT_APP_API_URL,
REACT_APP_BASE_URL: process.env.REACT_APP_BASE_URL,
REACT_APP_DELIVERY_API: process.env.REACT_APP_DELIVERY_API,
REACT_APP_ENVIRONMENT: process.env.REACT_APP_ENVIRONMENT,
REACT_APP_PREVIEW_API: process.env.REACT_APP_PREVIEW_API,
REACT_APP_SPACE_ID: process.env.REACT_APP_SPACE_ID,
REACT_APP_FEATURE_CAREER_PATHWAYS:
process.env.REACT_APP_FEATURE_CAREER_PATHWAYS,
REACT_APP_FEATURE_MULTILANG: process.env.REACT_APP_FEATURE_MULTILANG,
REACT_APP_FEATURE_PINPOINT: process.env.REACT_APP_FEATURE_PINPOINT,
REACT_APP_FEATURE_SHOW_PINPOINT_SEGMENTS:
process.env.REACT_APP_FEATURE_SHOW_PINPOINT_SEGMENTS,
REACT_APP_SITE_NAME: process.env.REACT_APP_SITE_NAME,
REACT_APP_SITE_URL: process.env.REACT_APP_SITE_URL,
},
images: {
unoptimized: false,
domains: ["images.ctfassets.net", "www.nj.gov"],
},
async rewrites() {
const apiHost = process.env.API_HOST || "localhost";
const apiPort = process.env.API_PORT || "8080";
return [
{
source: "/api/:path*",
destination: `http://${apiHost}:${apiPort}/api/:path*`,
},
];
},
sassOptions: {
// Silences the 'legacy-js-api' deprecation warning
silenceDeprecations: ["legacy-js-api"],
},
};
export default nextConfig;