Skip to content

Commit

Permalink
Use NODE_ENV (#2617)
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenSandwich authored Oct 31, 2024
1 parent 9a16026 commit 594ff02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app/api/refresh/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function sendMessageToAllClients(obj: any): void {

export async function POST() {
if (
process.env.VERCEL_ENV !== 'development' ||
process.env.NODE_ENV !== 'development' ||
process.env.HASHI_ENV !== 'unified-docs-sandbox'
) {
return new Response('Not Found', { status: 404 })
Expand All @@ -53,7 +53,7 @@ export async function POST() {

export async function GET(req: NextRequest) {
if (
process.env.VERCEL_ENV !== 'development' ||
process.env.NODE_ENV !== 'development' ||
process.env.HASHI_ENV !== 'unified-docs-sandbox'
) {
return new Response('Not Found', { status: 404 })
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/base-layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const BaseLayout = ({
const [showSkipLink, setShowSkipLink] = useState(false)

if (
process.env.VERCEL_ENV === 'development' &&
process.env.NODE_ENV === 'development' &&
process.env.HASHI_ENV === 'unified-docs-sandbox'
) {
useEffect(() => {
Expand Down

0 comments on commit 594ff02

Please sign in to comment.