Commit 7a9d3f0a authored by ChanHaeng Lee's avatar ChanHaeng Lee
Browse files

Fix working properly example

parent 53a5db89
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@
3.  Start the server:

    ```sh
    pnpm dev && pnpx @fedify/cli tunnel 3000
    pnpm dev & pnpx @fedify/cli tunnel 3000
    ```

4.  Open your browser tunneled URL and start interacting with the app.
+0 −9
Original line number Diff line number Diff line
import { fedifyRequestHandler } from "~/shared/integrate-fedify";

export {
  fedifyRequestHandler as DELETE,
  fedifyRequestHandler as GET,
  fedifyRequestHandler as PATCH,
  fedifyRequestHandler as POST,
  fedifyRequestHandler as PUT,
};
+0 −9
Original line number Diff line number Diff line
import { fedifyRequestHandler } from "~/shared/integrate-fedify";

export {
  fedifyRequestHandler as DELETE,
  fedifyRequestHandler as GET,
  fedifyRequestHandler as PATCH,
  fedifyRequestHandler as POST,
  fedifyRequestHandler as PUT,
};
+3 −8
Original line number Diff line number Diff line
@import "tailwindcss";
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --background: #ffffff;
  --foreground: #171717;
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --font-sans: var(--font-geist-sans);
  --font-mono: var(--font-geist-mono);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
+1 −16
Original line number Diff line number Diff line
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";

const geistSans = Geist({
  variable: "--font-geist-sans",
  subsets: ["latin"],
});

const geistMono = Geist_Mono({
  variable: "--font-geist-mono",
  subsets: ["latin"],
});

export const metadata: Metadata = {
  title: "Fedify Next.js App Router Example",
  description: "A demo of Fedify with Next.js App Router",
@@ -24,11 +13,7 @@ export default function RootLayout({
}>) {
  return (
    <html lang="en">
      <body
        className={`${geistSans.variable} ${geistMono.variable} antialiased`}
      >
        {children}
      </body>
      <body className={`antialiased`}>{children}</body>
    </html>
  );
}
Loading