Skip to content

Commit

Permalink
fix: load image
Browse files Browse the repository at this point in the history
  • Loading branch information
nxhawk committed Jul 20, 2024
1 parent 9d64b81 commit 81f6d66
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import React from "react";
const Logo = ({ hasText }: { hasText?: boolean }) => {
return (
<Link href={"/"} className="flex w-fit items-center gap-2 z-10">
<Image src="/logo.png" width={40} height={40} alt="logo_image" />
<Image src="/speaker-ui/logo.png" width={40} height={40} alt="logo_image" />
<div
className={cn(
"relative overflow-hidden rounded-full p-[1px] focus:outline-none focus:ring-2 focus:ring-neutral-400 focus:ring-offset-2 focus:ring-offset-neutral-50",
Expand Down
26 changes: 25 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,28 @@
/** @type {import('next').NextConfig} */
const nextConfig = {};
const nextConfig = {
/**
* Enable static exports for the App Router.
*
* @see https://nextjs.org/docs/app/building-your-application/deploying/static-exports
*/
output: "export",

/**
* Set base path. This is usually the slug of your repository.
*
* @see https://nextjs.org/docs/app/api-reference/next-config-js/basePath
*/
basePath: "/speaker-ui",

/**
* Disable server-based image optimization. Next.js does not support
* dynamic features with static exports.
*
* @see https://nextjs.org/docs/pages/api-reference/components/image#unoptimized
*/
images: {
unoptimized: true,
},
};

export default nextConfig;

0 comments on commit 81f6d66

Please sign in to comment.