-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
middleware.ts
103 lines (101 loc) · 2.55 KB
/
middleware.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
import { authMiddleware } from '@clerk/nextjs'
export default authMiddleware({
publicRoutes: [
'/',
'/resources',
'/faq',
'/ide',
'/community/discussions',
'/community/events',
'/frameworks/expressjs',
'/frameworks/emberjs',
'/frameworks/react',
'/frameworks/nextjs',
'/frameworks/threejs',
'/frameworks/vite',
'/frameworks/vuejs',
'/frameworks/svelte',
'/frameworks/astro',
'/frameworks/angular',
'/frameworks/gatsby',
'/frameworks/flask',
'/frameworks/django',
'/frameworks/rails',
'/frameworks/laravel',
'/frameworks/flutter',
'/frameworks/react-native',
'/frameworks/aspnet-core',
'/frameworks/tailwindcss',
'/frameworks/spring',
'/frameworks/cherrypy',
'/frameworks/d3js',
'/git/git-commands',
'/git/git-branching',
'/git/git-conflicts',
'/git/git-configuration',
'/git/git-workflow',
'/languages/html',
'/languages/htmx',
'/languages/css',
'/languages/coffeescript',
'/languages/rescript',
'/languages/javascript',
'/languages/typescript',
'/languages/c',
'/languages/cpp',
'/languages/csharp',
'/languages/d',
'/languages/fsharp',
'/languages/java',
'/languages/kotlin',
'/languages/scala',
'/languages/groovy',
'/languages/python',
'/languages/vyper',
'/languages/solidity',
'/languages/ruby',
'/languages/crystal',
'/languages/php',
'/languages/go',
'/languages/dart',
'/languages/swift',
'/languages/objective-c',
'/languages/julia',
'/languages/rust',
'/languages/haskell',
'/languages/lua',
'/languages/clojure',
'/languages/lisp',
'/languages/fortran',
'/languages/erlang',
'/languages/pascal',
'/languages/zig',
'/languages/r',
'/languages/elm',
'/languages/matlab',
'/languages/octave',
'/languages/sql',
'/languages/bash',
'/languages/perl',
'/languages/nix',
'/languages/scratch',
'/languages/zsh',
'/languages/delphi',
'/languages/pony',
'/languages/reason',
'/languages/purescript',
'/languages/actionscript',
'/languages/visualbasic',
'/languages/gamemaker',
'/roadmaps/how-to-contribute',
'/roadmaps/contribution-management',
'/roadmaps/open-source-philosophy',
'/roadmaps/open-source-licenses',
'/roadmaps/overview-of-documentation',
'/roadmaps/legal-and-ethical-considerations',
'/roadmaps/open-source-terminology'
]
})
export const config = {
matcher: ['/((?!.+\\.[\\w]+$|_next).*)', '/', '/(api|trpc)(.*)']
}