Skip to content

Commit e2030c6

Browse files
committed
build: remove graphic bed related content
1 parent 2ab09f5 commit e2030c6

File tree

15 files changed

+12
-1228
lines changed

15 files changed

+12
-1228
lines changed

.env.example

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,6 @@
1-
NEXT_PUBLIC_MINIO_ACCESS_KEY=xxx
2-
NEXT_PUBLIC_MINIO_SECRET_KEY=xxx
3-
NEXT_PUBLIC_MINIO_END_POINT=xxx
4-
NEXT_PUBLIC_MINIO_BUCKET=xxx
5-
61
NEXT_PUBLIC_SITE_HOST=https://example.com
2+
NEXT_PUBLIC_SITE_DOMAIN=example.com
73

84
# http 无法访问 https,也可使用 next dev --experimental-https 生成证书
95
NODE_TLS_REJECT_UNAUTHORIZED=0
106

11-
AUTH_SECRET=xxx # Added by `npx auth`. Read more: https://cli.authjs.dev
12-
13-
# https://authjs.dev/getting-started/authentication/oauth?framework=next-js
14-
AUTH_GITHUB_ID=xxx
15-
AUTH_GITHUB_SECRET=xxx
16-
17-
# 部署后 Github OAthu 认证出现 Server Error
18-
# https://github.com/nextauthjs/next-auth/issues/3770#issuecomment-2145575926
19-
AUTH_TRUST_HOST=true
20-
21-
# fix: docker 部署后,next-auth 并没有正确推断出 redirect_uri
22-
# redirect_uri 变成了容器 id + 端口,所以这里明确指向
23-
AUTH_URL=https://example.com/api/auth
24-

app/api/auth/[...nextauth]/route.ts

Lines changed: 0 additions & 17 deletions
This file was deleted.

app/api/upload/route.ts

Lines changed: 0 additions & 89 deletions
This file was deleted.

app/layout.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { Metadata } from 'next';
22
import { ThemeProvider } from 'next-themes';
3-
import { SessionProvider } from 'next-auth/react';
43
import PageHeader from '~/components/layouts/page-header';
54
import siteConfig from '~/config/siteConfig';
65
import './globals.css';
@@ -16,10 +15,8 @@ export default function RootLayout({
1615
<html lang="zh-CN" suppressHydrationWarning>
1716
<body className="antialiased">
1817
<ThemeProvider attribute="class" enableSystem enableColorScheme>
19-
<SessionProvider>
20-
<PageHeader />
21-
{children}
22-
</SessionProvider>
18+
<PageHeader />
19+
{children}
2320
</ThemeProvider>
2421
</body>
2522
</html>

app/picture/page.tsx

Lines changed: 0 additions & 193 deletions
This file was deleted.

0 commit comments

Comments
 (0)