- 🍕 Feature - A new feature.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { NextFetchEvent, NextRequest, NextResponse } from 'next/server'; | |
import { getToken } from 'next-auth/jwt'; | |
import { withAuth } from 'next-auth/middleware'; | |
/* | |
* Match all request paths except for the ones starting with: | |
* - api (API routes) | |
* - _next/static (static files) | |
* - _next/image (image optimization files) | |
* - favicon.ico (favicon file) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
. "$(dirname -- "$0")/_/husky.sh" | |
# Checks for branch name | |
currentBranch=$(git rev-parse --abbrev-ref HEAD) | |
requiredPattern="^(build|chore|feat|docs|refactor|perf|test)/ABC-\d+-.+$" | |
if ! echo "$currentBranch" | grep -qE $requiredPattern; then |