This commit is contained in:
mei 2024-11-29 21:50:50 +08:00
parent 02e098487f
commit e0f604ea31
29 changed files with 1 additions and 3 deletions

0
.eslintrc.json Normal file → Executable file
View File

0
.gitignore vendored Normal file → Executable file
View File

1
Dockerfile Normal file → Executable file
View File

@ -55,6 +55,7 @@ RUN adduser --system --uid 1001 nextjs
# 复制构建的应用和依赖项 # 复制构建的应用和依赖项
COPY --from=builder /app/next.config.js ./ COPY --from=builder /app/next.config.js ./
COPY --from=builder /app/.next/standalone ./ COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/start.sh ./
COPY --from=builder /app/.next/static ./.next/static COPY --from=builder /app/.next/static ./.next/static
# 设置正确的权限 # 设置正确的权限

0
README.md Normal file → Executable file
View File

0
app/api/shorten/route.ts Normal file → Executable file
View File

0
app/api/url/[shortCode]/route.ts Normal file → Executable file
View File

0
app/favicon.ico Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

0
app/fonts/GeistMonoVF.woff Normal file → Executable file
View File

0
app/fonts/GeistVF.woff Normal file → Executable file
View File

0
app/globals.css Normal file → Executable file
View File

0
app/layout.tsx Normal file → Executable file
View File

0
app/page.tsx Normal file → Executable file
View File

0
app/s/[shortCode]/page.tsx Normal file → Executable file
View File

0
components.json Normal file → Executable file
View File

0
components/Redirect.tsx Normal file → Executable file
View File

0
components/ShortUrlForm.tsx Normal file → Executable file
View File

0
components/ui/card.tsx Normal file → Executable file
View File

0
components/ui/progress.tsx Normal file → Executable file
View File

0
components/ui/skeleton.tsx Normal file → Executable file
View File

0
lib/db.ts Normal file → Executable file
View File

0
lib/env.ts Normal file → Executable file
View File

0
lib/utils.ts Normal file → Executable file
View File

3
next.config.js Normal file → Executable file
View File

@ -1,9 +1,6 @@
/** @type {import('next').NextConfig} */ /** @type {import('next').NextConfig} */
const nextConfig = { const nextConfig = {
output: 'standalone', output: 'standalone',
experimental: {
serverActions: true,
},
// 启用运行时配置 // 启用运行时配置
serverRuntimeConfig: { serverRuntimeConfig: {
// 将在服务器端可用 // 将在服务器端可用

0
package-lock.json generated Normal file → Executable file
View File

0
package.json Normal file → Executable file
View File

0
postcss.config.mjs Normal file → Executable file
View File

0
start.sh Normal file → Executable file
View File

0
tailwind.config.ts Normal file → Executable file
View File

0
tsconfig.json Normal file → Executable file
View File