Skip to content

Commit

Permalink
refactor: change NextJS env const var to NODE_ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
ashgw committed May 19, 2024
1 parent 941ef01 commit e9cc660
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@
"tailwindcss-animate": "^1.0.7",
"typed.js": "^2.1.0"
}
}
}
4 changes: 4 additions & 0 deletions src/app/components/protos/hero-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ import { Button } from '../ui/button';

/* eslint-disable */

/* eslint-disable */

/* eslint-disable */

function TypingAnimation() {
const el = useRef(null);

Expand Down
10 changes: 10 additions & 0 deletions src/app/components/reusables/code/code-block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ import CopyButton from './copy-code';
/* eslint-disable */
// @ts-nocheck

// react-syntax-highlighter has no types

/* eslint-disable */
// @ts-nocheck

// react-syntax-highlighter has no types

/* eslint-disable */
// @ts-nocheck

// react-syntax-highlighter has no types
/* eslint-disable */
// @ts-nocheck
Expand Down
2 changes: 1 addition & 1 deletion src/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const BLOG_URI = '/blog';
export const BLOG_TAG_URI = '/blog/tag';
export const BLOG_API_URI = '/api/blogs';
export const SITE_URL =
nextJS.NEXT_NODE_ENV === 'production' ? pub.SITE_URL_PROD : pub.SITE_URL_DEV;
nextJS.NODE_ENV === 'production' ? pub.SITE_URL_PROD : pub.SITE_URL_DEV;
export const EMAIL = pub.EMAIL;
export const Status = {
OK: 200,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const dev = {};
export const prod = {};

export const nextJS = {
NEXT_NODE_ENV: process.env.NEXT_NODE_ENV as string,
NODE_ENV: process.env.NODE_ENV as string,
GENERATE_SOURCEMAP: false,
};

Expand Down

0 comments on commit e9cc660

Please sign in to comment.