diff --git a/build-filter.sh b/build-filter.sh new file mode 100644 index 00000000..ae7081e4 --- /dev/null +++ b/build-filter.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +echo "VERCEL_GIT_COMMIT_REF: $VERCEL_GIT_COMMIT_REF" + +if [[ "$VERCEL_GIT_COMMIT_REF" == "master" || "$VERCEL_GIT_COMMIT_REF" == "development" ]]; then +echo "✅ - Build can proceed" +exit 1 +else +echo "🛑 - Build cancelled" +exit 0 +fi diff --git a/src/components/Button.tsx b/src/components/Button.tsx index c67a29c2..e901b765 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -1,7 +1,5 @@ import react from 'react'; - import Link from 'next/link'; - import { cn } from '@/lib/helper'; import { Color } from '@/types/theme'; @@ -10,6 +8,8 @@ interface ButtonProps extends react.ComponentProps<'button'> { color?: Color; href?: string; isLoading?: boolean; + target?: string; + rel?: string; } const Button = ({ @@ -22,6 +22,8 @@ const Button = ({ className, disabled, onClick, + target, + rel, ...props }: ButtonProps) => { const btnBaseClassName = cn( @@ -68,6 +70,8 @@ const Button = ({ {href && ( { {type === 'detail' ? ( - + ) : (