-
-
Notifications
You must be signed in to change notification settings - Fork 49
/
config.ts
89 lines (82 loc) · 2.21 KB
/
config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
export const SITE = {
title: 'nestjs-prisma',
description: 'Easy Prisma support for your NestJS application.',
defaultLanguage: 'en_US',
};
export const OPEN_GRAPH = {
image: {
src: 'https://repository-images.githubusercontent.com/285317400/96d0c3d9-4b2b-461e-be5f-736d4b1b5a65',
alt: 'nestjs-prisma banner',
},
twitter: 'notiz_dev',
};
export type Frontmatter = {
title: string;
layout: string;
};
export type Link = {
title: string;
link: string;
};
export type Navigation = {
title: string;
links: Link[];
};
export const navigation: Navigation[] = [
{
title: 'Introduction',
links: [
{ title: 'Installation', link: '/docs/installation' },
{ title: 'Basic Usage', link: '/docs/basic-usage' },
{ title: 'Configuration', link: '/docs/configuration' },
],
},
{
title: 'Basics',
links: [
{ title: 'Shutdown Hook', link: '/docs/shutdown-hook' },
{ title: 'Prisma Middleware', link: '/docs/prisma-middleware' },
{ title: 'Prisma Logging', link: '/docs/prisma-logging' },
],
},
{
title: 'Built-in Tools',
links: [
{ title: 'Exception Filter', link: '/docs/exception-filter' },
{ title: 'Logging Middleware', link: '/docs/logging-middleware' },
],
},
{
title: 'Automation',
links: [
{ title: 'Schematics', link: '/docs/schematics' },
{ title: 'Custom Prisma Service', link: '/docs/custom-prisma-service' },
],
},
{
title: 'Resources',
links: [{ title: 'Examples', link: '/docs/examples' }],
},
];
export type Example = {
name: string;
description: string;
link: string;
};
export const examples: Example[] = [
{
name: 'Basics',
description: 'NestJS app with Express, Prisma and nestjs-prisma.',
link: 'https://github.com/notiz-dev/nestjs-prisma/tree/main/examples/basics',
},
{
name: 'Fastify',
description: 'NestJS app with Fastify, Prisma and nestjs-prisma.',
link: 'https://github.com/notiz-dev/nestjs-prisma/tree/main/examples/fastify',
},
{
name: 'nestjs-prisma-starter',
description: 'NestJS app with GraphQL, JWT authentication, REST API w/ Swagger and Docker',
link: 'https://github.com/notiz-dev/nestjs-prisma-starter',
},
];