Skip to content

Commit b461f95

Browse files
author
Dan Costello
authored
Fix assets (#6)
1 parent 3b69fbe commit b461f95

File tree

3 files changed

+2
-13
lines changed

3 files changed

+2
-13
lines changed

app/(home)/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default function HomePage() {
77
<main className="flex flex-1 flex-col items-center justify-center py-20 text-center px-4">
88
<div className="mb-10 flex flex-col items-center gap-y-6">
99
<Image
10-
src={`${process.env.assetPrefix}/logo.png`}
10+
src={"logo.png"}
1111
alt="UserClouds Logo"
1212
width={240}
1313
height={33}

app/layout.config.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const baseOptions: BaseLayoutProps = {
1414
title: (
1515
<>
1616
<Image
17-
src={`${process.env.assetPrefix}/logo.png`}
17+
src={"logo.png"}
1818
width={160}
1919
height={22}
2020
alt="UserClouds logo"

next.config.mjs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,10 @@
11
import { createMDX } from "fumadocs-mdx/next";
22
const withMDX = createMDX();
33

4-
const isProduction = process.env.NODE_ENV === "production";
5-
6-
let assetPrefix = isProduction ? "./" : "";
7-
let basePath = "";
8-
94
/** @type {import('next').NextConfig} */
105
const config = {
116
reactStrictMode: true,
127
output: "export",
13-
assetPrefix,
14-
basePath,
15-
env: {
16-
assetPrefix,
17-
basePath,
18-
},
198
trailingSlash: true,
209
images: {
2110
unoptimized: true,

0 commit comments

Comments
 (0)