From 4a275b166e079266401fff3551a27809cf675af1 Mon Sep 17 00:00:00 2001 From: Doug Date: Mon, 11 Nov 2024 23:46:08 -0500 Subject: [PATCH] refactor: move icons and font to public folder --- apps/frontend/{src/app => public}/favicon.ico | Bin .../{src/app => public}/fonts/GeistMonoVF.woff | Bin .../frontend/{src/app => public}/fonts/GeistVF.woff | Bin apps/frontend/src/app/layout.tsx | 4 ++-- apps/frontend/tsconfig.json | 5 ++++- apps/frontend/tsconfig.next.json | 5 ++++- 6 files changed, 10 insertions(+), 4 deletions(-) rename apps/frontend/{src/app => public}/favicon.ico (100%) rename apps/frontend/{src/app => public}/fonts/GeistMonoVF.woff (100%) rename apps/frontend/{src/app => public}/fonts/GeistVF.woff (100%) diff --git a/apps/frontend/src/app/favicon.ico b/apps/frontend/public/favicon.ico similarity index 100% rename from apps/frontend/src/app/favicon.ico rename to apps/frontend/public/favicon.ico diff --git a/apps/frontend/src/app/fonts/GeistMonoVF.woff b/apps/frontend/public/fonts/GeistMonoVF.woff similarity index 100% rename from apps/frontend/src/app/fonts/GeistMonoVF.woff rename to apps/frontend/public/fonts/GeistMonoVF.woff diff --git a/apps/frontend/src/app/fonts/GeistVF.woff b/apps/frontend/public/fonts/GeistVF.woff similarity index 100% rename from apps/frontend/src/app/fonts/GeistVF.woff rename to apps/frontend/public/fonts/GeistVF.woff diff --git a/apps/frontend/src/app/layout.tsx b/apps/frontend/src/app/layout.tsx index a36cde0..05f59f8 100644 --- a/apps/frontend/src/app/layout.tsx +++ b/apps/frontend/src/app/layout.tsx @@ -3,12 +3,12 @@ import localFont from "next/font/local"; import "./globals.css"; const geistSans = localFont({ - src: "./fonts/GeistVF.woff", + src: "../../public/fonts/GeistVF.woff", variable: "--font-geist-sans", weight: "100 900", }); const geistMono = localFont({ - src: "./fonts/GeistMonoVF.woff", + src: "../../public/fonts/GeistVF.woff", variable: "--font-geist-mono", weight: "100 900", }); diff --git a/apps/frontend/tsconfig.json b/apps/frontend/tsconfig.json index 987cc6a..0d4bb39 100644 --- a/apps/frontend/tsconfig.json +++ b/apps/frontend/tsconfig.json @@ -23,7 +23,10 @@ { "name": "next" } - ] + ], + "paths": { + "@/*": ["./app/*"] + } }, "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], "exclude": ["node_modules"] diff --git a/apps/frontend/tsconfig.next.json b/apps/frontend/tsconfig.next.json index ccb2ed9..056012b 100644 --- a/apps/frontend/tsconfig.next.json +++ b/apps/frontend/tsconfig.next.json @@ -20,7 +20,10 @@ { "name": "next" } - ] + ], + "paths": { + "@/*": ["./app/*"] + } }, "include": [ "next-env.d.ts",