From e0f604ea315835586904099be901d348dbb791c2 Mon Sep 17 00:00:00 2001 From: mei Date: Fri, 29 Nov 2024 21:50:50 +0800 Subject: [PATCH] update --- .eslintrc.json | 0 .gitignore | 0 Dockerfile | 1 + README.md | 0 app/api/shorten/route.ts | 0 app/api/url/[shortCode]/route.ts | 0 app/favicon.ico | Bin app/fonts/GeistMonoVF.woff | Bin app/fonts/GeistVF.woff | Bin app/globals.css | 0 app/layout.tsx | 0 app/page.tsx | 0 app/s/[shortCode]/page.tsx | 0 components.json | 0 components/Redirect.tsx | 0 components/ShortUrlForm.tsx | 0 components/ui/card.tsx | 0 components/ui/progress.tsx | 0 components/ui/skeleton.tsx | 0 lib/db.ts | 0 lib/env.ts | 0 lib/utils.ts | 0 next.config.js | 3 --- package-lock.json | 0 package.json | 0 postcss.config.mjs | 0 start.sh | 0 tailwind.config.ts | 0 tsconfig.json | 0 29 files changed, 1 insertion(+), 3 deletions(-) mode change 100644 => 100755 .eslintrc.json mode change 100644 => 100755 .gitignore mode change 100644 => 100755 Dockerfile mode change 100644 => 100755 README.md mode change 100644 => 100755 app/api/shorten/route.ts mode change 100644 => 100755 app/api/url/[shortCode]/route.ts mode change 100644 => 100755 app/favicon.ico mode change 100644 => 100755 app/fonts/GeistMonoVF.woff mode change 100644 => 100755 app/fonts/GeistVF.woff mode change 100644 => 100755 app/globals.css mode change 100644 => 100755 app/layout.tsx mode change 100644 => 100755 app/page.tsx mode change 100644 => 100755 app/s/[shortCode]/page.tsx mode change 100644 => 100755 components.json mode change 100644 => 100755 components/Redirect.tsx mode change 100644 => 100755 components/ShortUrlForm.tsx mode change 100644 => 100755 components/ui/card.tsx mode change 100644 => 100755 components/ui/progress.tsx mode change 100644 => 100755 components/ui/skeleton.tsx mode change 100644 => 100755 lib/db.ts mode change 100644 => 100755 lib/env.ts mode change 100644 => 100755 lib/utils.ts mode change 100644 => 100755 next.config.js mode change 100644 => 100755 package-lock.json mode change 100644 => 100755 package.json mode change 100644 => 100755 postcss.config.mjs mode change 100644 => 100755 start.sh mode change 100644 => 100755 tailwind.config.ts mode change 100644 => 100755 tsconfig.json diff --git a/.eslintrc.json b/.eslintrc.json old mode 100644 new mode 100755 diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/Dockerfile b/Dockerfile old mode 100644 new mode 100755 index 3e34960..0d0b694 --- a/Dockerfile +++ b/Dockerfile @@ -55,6 +55,7 @@ RUN adduser --system --uid 1001 nextjs # 复制构建的应用和依赖项 COPY --from=builder /app/next.config.js ./ COPY --from=builder /app/.next/standalone ./ +COPY --from=builder /app/start.sh ./ COPY --from=builder /app/.next/static ./.next/static # 设置正确的权限 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/app/api/shorten/route.ts b/app/api/shorten/route.ts old mode 100644 new mode 100755 diff --git a/app/api/url/[shortCode]/route.ts b/app/api/url/[shortCode]/route.ts old mode 100644 new mode 100755 diff --git a/app/favicon.ico b/app/favicon.ico old mode 100644 new mode 100755 diff --git a/app/fonts/GeistMonoVF.woff b/app/fonts/GeistMonoVF.woff old mode 100644 new mode 100755 diff --git a/app/fonts/GeistVF.woff b/app/fonts/GeistVF.woff old mode 100644 new mode 100755 diff --git a/app/globals.css b/app/globals.css old mode 100644 new mode 100755 diff --git a/app/layout.tsx b/app/layout.tsx old mode 100644 new mode 100755 diff --git a/app/page.tsx b/app/page.tsx old mode 100644 new mode 100755 diff --git a/app/s/[shortCode]/page.tsx b/app/s/[shortCode]/page.tsx old mode 100644 new mode 100755 diff --git a/components.json b/components.json old mode 100644 new mode 100755 diff --git a/components/Redirect.tsx b/components/Redirect.tsx old mode 100644 new mode 100755 diff --git a/components/ShortUrlForm.tsx b/components/ShortUrlForm.tsx old mode 100644 new mode 100755 diff --git a/components/ui/card.tsx b/components/ui/card.tsx old mode 100644 new mode 100755 diff --git a/components/ui/progress.tsx b/components/ui/progress.tsx old mode 100644 new mode 100755 diff --git a/components/ui/skeleton.tsx b/components/ui/skeleton.tsx old mode 100644 new mode 100755 diff --git a/lib/db.ts b/lib/db.ts old mode 100644 new mode 100755 diff --git a/lib/env.ts b/lib/env.ts old mode 100644 new mode 100755 diff --git a/lib/utils.ts b/lib/utils.ts old mode 100644 new mode 100755 diff --git a/next.config.js b/next.config.js old mode 100644 new mode 100755 index 0e568a3..7aafd19 --- a/next.config.js +++ b/next.config.js @@ -1,9 +1,6 @@ /** @type {import('next').NextConfig} */ const nextConfig = { output: 'standalone', - experimental: { - serverActions: true, - }, // 启用运行时配置 serverRuntimeConfig: { // 将在服务器端可用 diff --git a/package-lock.json b/package-lock.json old mode 100644 new mode 100755 diff --git a/package.json b/package.json old mode 100644 new mode 100755 diff --git a/postcss.config.mjs b/postcss.config.mjs old mode 100644 new mode 100755 diff --git a/start.sh b/start.sh old mode 100644 new mode 100755 diff --git a/tailwind.config.ts b/tailwind.config.ts old mode 100644 new mode 100755 diff --git a/tsconfig.json b/tsconfig.json old mode 100644 new mode 100755