File tree Expand file tree Collapse file tree 4 files changed +11
-14
lines changed Expand file tree Collapse file tree 4 files changed +11
-14
lines changed Original file line number Diff line number Diff line change 11import Link from "next/link" ;
22import Image from "next/image" ;
3- import { BASE_PATH } from "@/app/utils/constants" ;
43
54export default function HomePage ( ) {
65 return (
76 < main className = "flex flex-1 flex-col items-center justify-center py-20 text-center px-4" >
87 < div className = "mb-10 flex flex-col items-center gap-y-6" >
98 < Image
10- src = { `${ BASE_PATH } /logo.png` }
9+ src = { `${ process . env . pathPrefix } /logo.png` }
1110 alt = "UserClouds Logo"
1211 width = { 240 }
1312 height = { 33 }
Original file line number Diff line number Diff line change 11import type { BaseLayoutProps } from "fumadocs-ui/layouts/shared" ;
22import Image from "next/image" ;
3- import { BASE_PATH } from "@/app/utils/constants" ;
43
54/**
65 * Shared layout configurations
@@ -15,7 +14,7 @@ export const baseOptions: BaseLayoutProps = {
1514 title : (
1615 < >
1716 < Image
18- src = { `${ BASE_PATH } /logo.png` }
17+ src = { `${ process . env . pathPrefix } /logo.png` }
1918 width = { 160 }
2019 height = { 22 }
2120 alt = "UserClouds logo"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11import { createMDX } from "fumadocs-mdx/next" ;
22const withMDX = createMDX ( ) ;
33
4- const isProd = process . env . NODE_ENV === "production" ;
4+ const pathPrefix =
5+ process . env . NODE_ENV === "production"
6+ ? process . env . NEXT_PUBLIC_BASE_PATH || "./"
7+ : "" ;
8+
59/** @type {import('next').NextConfig } */
610const config = {
711 reactStrictMode : true ,
812 output : "export" ,
9- assetPrefix : isProd ? ( process . env . NEXT_PUBLIC_ASSET_PREFIX ?? "./" ) : "" ,
10- basePath : isProd
11- ? ( process . env . NEXT_PUBLIC_BASE_PATH ?? ` ${ process . env . PWD } /out` ?? "" )
12- : "" ,
13+ assetPrefix : pathPrefix ,
14+ env : {
15+ pathPrefix ,
16+ } ,
1317 trailingSlash : true ,
1418 images : {
1519 unoptimized : true ,
You can’t perform that action at this time.
0 commit comments