Skip to content

Commit

Permalink
change prod env variable for client
Browse files Browse the repository at this point in the history
  • Loading branch information
tedraykov committed Mar 29, 2022
1 parent 4278baf commit f9edceb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions components/cart/CartItem/CartItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ const CartItem: FC<CartItemProps> = ({
['opacity-75 pointer-events-none']: removing,
})

console.log(item)

return (
<li className={rootClassName} {...rest}>
<div className="w-16 h-16 lg:w-20 lg:h-20 rounded-md bg-violet relative overflow-hidden cursor-pointer">
Expand Down
5 changes: 1 addition & 4 deletions config/environment.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
export function isProd() {
return (
process.env.NODE_ENV === 'production' &&
process.env.SERVER_ENV === 'production'
)
return process.env.NEXT_PUBLIC_ENV === 'production'
}

1 comment on commit f9edceb

@vercel
Copy link

@vercel vercel bot commented on f9edceb Mar 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.