From 5ac1ff01cbbe7a83736408ed16ea32898c967b75 Mon Sep 17 00:00:00 2001 From: jwinterm Date: Fri, 3 Jul 2026 17:07:35 -0400 Subject: [PATCH] feat(feed): route feed.smirk.cash subdomain root to /feed --- next.config.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/next.config.ts b/next.config.ts index e9ffa30..7268c3b 100644 --- a/next.config.ts +++ b/next.config.ts @@ -1,7 +1,17 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { - /* config options here */ + // Serve the Nostr feed at the feed.smirk.cash subdomain root (one app, two + // hosts). smirk.cash/feed keeps working directly. + async rewrites() { + return [ + { + source: "/", + has: [{ type: "host", value: "feed.smirk.cash" }], + destination: "/feed", + }, + ]; + }, }; export default nextConfig;