Skip to content

Commit f81041d

Browse files
committed
Set static basePath and assetPrefix in Next.js config
Removed environment-based logic for basePath and assetPrefix, setting them statically to '/tarot-but-hours'. Also commented out the background image in globals.css.
1 parent b0025c7 commit f81041d

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

web/next.config.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
import type { NextConfig } from "next";
22

3-
const isProd = process.env.NODE_ENV === 'production';
43
const repoName = 'tarot-but-hours';
54

65
const nextConfig: NextConfig = {
76
output: 'export',
8-
basePath: isProd ? `/${repoName}` : '',
9-
assetPrefix: isProd ? `/${repoName}/` : '',
7+
basePath: `/${repoName}`,
8+
assetPrefix: `/${repoName}/`,
109
env: {
11-
NEXT_PUBLIC_BASE_PATH: isProd ? `/${repoName}` : '',
10+
NEXT_PUBLIC_BASE_PATH: `/${repoName}`,
1211
},
1312
images: {
1413
unoptimized: true,

web/src/app/globals.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ body {
2929
color: var(--color-primary-text);
3030
font-family: var(--font-cormorant), var(--font-noto-serif-sc), serif;
3131
overflow-x: hidden;
32-
background-image: url("https://grainy-gradients.vercel.app/noise.svg");
32+
/* background-image: url("https://grainy-gradients.vercel.app/noise.svg"); */
3333
background-blend-mode: overlay;
3434
background-attachment: fixed;
3535
}

0 commit comments

Comments
 (0)