Skip to content

Commit a4bc571

Browse files
committed
Remove metadata.ts file
1 parent d3c76e0 commit a4bc571

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed

frontend/src/app/layout.tsx

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
1-
"use client";
2-
31
import "./globals.css";
42
import Header from "@/components/Header";
53
import StatusChecker from "@/components/StatusChecker";
64
import { ToastProvider } from "@/contexts/ToastContext";
5+
import type { Metadata } from "next";
6+
7+
const isGithubPages = process.env.NODE_ENV === "production" && process.env.GITHUB_PAGES === "true";
8+
9+
export const metadata: Metadata = {
10+
title: "FluentAI",
11+
description: "Learning languages in a flash.",
12+
icons: {
13+
icon: `${isGithubPages ? '/FluentAI' : ''}/logo.png`,
14+
}
15+
};
716

817
export default function RootLayout({
918
children,

frontend/src/app/metadata.ts

-11
This file was deleted.

frontend/src/components/StatusChecker.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"use client";
2+
13
import { useEffect, useRef } from "react";
24
import { ANKI_CONFIG } from "@/config/constants";
35
import { useToast } from "@/contexts/ToastContext";

frontend/src/contexts/ToastContext.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"use client";
2+
13
import React, { createContext, useContext, useState, useCallback } from 'react';
24
import { Toast, ToastContainer, ToastType } from '@/components/ui/Toast';
35

0 commit comments

Comments
 (0)