Skip to content

Commit

Permalink
Merge pull request #57
Browse files Browse the repository at this point in the history
feature/nem-19
  • Loading branch information
z4nr34l authored Jul 12, 2024
2 parents 4a91427 + 0331b04 commit 74a1a7f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/docs/content/docs/examples/next-auth.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Do to so, please follow the [Getting Started](https://authjs.dev/getting-started

Here you will find example middleware configuration for Next-Auth package to restrict access to `/page2` route.

```typescript {3,13}
```typescript {3,13} title="middleware.ts"
import createMiddleware from 'next-easy-middlewares';
import { type NextRequest, NextResponse } from 'next/server';
import { auth } from '@/auth';
Expand Down
4 changes: 3 additions & 1 deletion apps/docs/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ title: Getting Started
description: Getting started with Next Easy Middlewares
---



import {Tab, Tabs} from 'next-docs-ui/components/tabs';

## Motivation
Expand Down Expand Up @@ -40,7 +42,7 @@ Paste installation command into your terminal to install package.

## Basic usage

```typescript title="/middleware.ts" {5,9}
```typescript title="middleware.ts" {1, 5,9}
import { createMiddleware } from 'next-easy-middlewares';
import { type NextRequest, NextResponse } from 'next/server';

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/docs/matchers/simple.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Simple matcher
description: Simple matcher type and how to use it.
---

```typescript
```typescript title="middleware.ts"
// ...

const middlewares = {
Expand Down

0 comments on commit 74a1a7f

Please sign in to comment.