From afd18d19a92ec95263679e39d7677591626e7f0f Mon Sep 17 00:00:00 2001 From: Max Leiter Date: Thu, 23 Feb 2023 23:56:13 -0800 Subject: [PATCH] Remove /home rewrite, replace with page --- next.config.mjs | 6 +----- src/app/(drift)/home/page.tsx | 3 +++ src/app/(drift)/page.tsx | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 src/app/(drift)/home/page.tsx diff --git a/next.config.mjs b/next.config.mjs index 7786a8f..23fcce8 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -14,10 +14,6 @@ const nextConfig = { source: "/file/raw/:id", destination: `/api/raw/:id` }, - { - source: "/home", - destination: "/" - } ] }, images: { @@ -25,7 +21,7 @@ const nextConfig = { }, env: { NEXT_PUBLIC_DRIFT_URL: process.env.DRIFT_URL - }, + } } export default bundleAnalyzer({ enabled: process.env.ANALYZE === "true" })( diff --git a/src/app/(drift)/home/page.tsx b/src/app/(drift)/home/page.tsx new file mode 100644 index 0000000..5b871a8 --- /dev/null +++ b/src/app/(drift)/home/page.tsx @@ -0,0 +1,3 @@ +import HomePage from "../page"; + +export default HomePage; diff --git a/src/app/(drift)/page.tsx b/src/app/(drift)/page.tsx index 02d8320..8c10470 100644 --- a/src/app/(drift)/page.tsx +++ b/src/app/(drift)/page.tsx @@ -100,4 +100,4 @@ async function PublicPostList() { const clientPosts = posts.map((post) => serverPostToClientPost(post)) return -} +} \ No newline at end of file