From 782626389d421285532a9bd813a8b26cc5c5bc2e Mon Sep 17 00:00:00 2001 From: dimasma0305 Date: Sun, 4 Feb 2024 20:41:22 +0800 Subject: [PATCH] feat: fix image --- next.config.js | 4 ++++ src/app/_components/footer.tsx | 4 +++- src/app/_components/logo-header.tsx | 4 +++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/next.config.js b/next.config.js index 654dd73..8aae1e8 100644 --- a/next.config.js +++ b/next.config.js @@ -1,7 +1,11 @@ /** @type {import('next').NextConfig} */ const nextConfig = { basePath: "/tcp1p-pages", + assetPrefix: "/tcp1p-pages", output: "export", + images:{ + unoptimized: true + } } module.exports = nextConfig diff --git a/src/app/_components/footer.tsx b/src/app/_components/footer.tsx index 8a4d340..35c4d40 100644 --- a/src/app/_components/footer.tsx +++ b/src/app/_components/footer.tsx @@ -2,6 +2,8 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faGithub, faLinkedin } from "@fortawesome/free-brands-svg-icons"; import { faEnvelope} from "@fortawesome/free-solid-svg-icons"; import Image from "next/image"; + +import ctftimelogo from "../../../public/ctftime.png" export function TopFooter() { return <>