Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e9cc660

Browse files
committed
refactor: change NextJS env const var to NODE_ENV
1 parent 941ef01 commit e9cc660

File tree

5 files changed

+17
-3
lines changed

5 files changed

+17
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,4 @@
8181
"tailwindcss-animate": "^1.0.7",
8282
"typed.js": "^2.1.0"
8383
}
84-
}
84+
}

src/app/components/protos/hero-section.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ import { Button } from '../ui/button';
1919

2020
/* eslint-disable */
2121

22+
/* eslint-disable */
23+
24+
/* eslint-disable */
25+
2226
function TypingAnimation() {
2327
const el = useRef(null);
2428

src/app/components/reusables/code/code-block.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,16 @@ import CopyButton from './copy-code';
5151
/* eslint-disable */
5252
// @ts-nocheck
5353

54+
// react-syntax-highlighter has no types
55+
56+
/* eslint-disable */
57+
// @ts-nocheck
58+
59+
// react-syntax-highlighter has no types
60+
61+
/* eslint-disable */
62+
// @ts-nocheck
63+
5464
// react-syntax-highlighter has no types
5565
/* eslint-disable */
5666
// @ts-nocheck

src/lib/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const BLOG_URI = '/blog';
88
export const BLOG_TAG_URI = '/blog/tag';
99
export const BLOG_API_URI = '/api/blogs';
1010
export const SITE_URL =
11-
nextJS.NEXT_NODE_ENV === 'production' ? pub.SITE_URL_PROD : pub.SITE_URL_DEV;
11+
nextJS.NODE_ENV === 'production' ? pub.SITE_URL_PROD : pub.SITE_URL_DEV;
1212
export const EMAIL = pub.EMAIL;
1313
export const Status = {
1414
OK: 200,

src/lib/env.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const dev = {};
77
export const prod = {};
88

99
export const nextJS = {
10-
NEXT_NODE_ENV: process.env.NEXT_NODE_ENV as string,
10+
NODE_ENV: process.env.NODE_ENV as string,
1111
GENERATE_SOURCEMAP: false,
1212
};
1313

0 commit comments

Comments
 (0)