From 54d29cdf70f94e3071c039863855a9abf8eec3a9 Mon Sep 17 00:00:00 2001
From: Stephen Zhou <38493346+hyoban@users.noreply.github.com>
Date: Wed, 18 Mar 2026 19:26:34 +0800
Subject: [PATCH] no redirects
---
web/app/page.tsx | 17 +++--------------
web/next.config.ts | 9 ---------
web/next/navigation.ts | 1 +
3 files changed, 4 insertions(+), 23 deletions(-)
diff --git a/web/app/page.tsx b/web/app/page.tsx
index 5c71722692..5d57c29d87 100644
--- a/web/app/page.tsx
+++ b/web/app/page.tsx
@@ -1,16 +1,5 @@
-import Link from '@/next/link'
+import { redirect } from '@/next/navigation'
-const Home = async () => {
- return (
-
- )
+export default async function Home() {
+ redirect('/apps')
}
-
-export default Home
diff --git a/web/next.config.ts b/web/next.config.ts
index aa4d9318f4..a635d1f538 100644
--- a/web/next.config.ts
+++ b/web/next.config.ts
@@ -21,15 +21,6 @@ const nextConfig: NextConfig = {
// https://nextjs.org/docs/api-reference/next.config.js/ignoring-typescript-errors
ignoreBuildErrors: true,
},
- async redirects() {
- return [
- {
- source: '/',
- destination: '/apps',
- permanent: false,
- },
- ]
- },
output: 'standalone',
compiler: {
removeConsole: isDev ? false : { exclude: ['warn', 'error'] },
diff --git a/web/next/navigation.ts b/web/next/navigation.ts
index ec7c112645..7147fb2f5d 100644
--- a/web/next/navigation.ts
+++ b/web/next/navigation.ts
@@ -1,4 +1,5 @@
export {
+ redirect,
useParams,
usePathname,
useRouter,