Skip to content

Commit 83b67f3

Browse files
committed
make embed
1 parent 36911f6 commit 83b67f3

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
embed:
2+
cd chat && bun run build
3+
rm -rf lib/httpapi/chat && mkdir -p lib/httpapi/chat && touch lib/httpapi/chat/marker
4+
cp -r chat/out/. lib/httpapi/chat/

chat/next.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ const nextConfig = {
1313
},
1414

1515
// Configure base path for GitHub Pages (repo/chat)
16-
basePath: isGitHubPages ? `/${repo}/${subPath}` : "",
16+
basePath: isGitHubPages ? `/${repo}/${subPath}` : `/${subPath}`,
1717

1818
// Configure asset prefix for GitHub Pages - helps with static asset loading
19-
assetPrefix: isGitHubPages ? `/${repo}/${subPath}/` : "",
19+
assetPrefix: isGitHubPages ? `/${repo}/${subPath}/` : `/${subPath}/`,
2020

2121
// Configure trailing slashes (recommended for static exports)
2222
trailingSlash: true,

0 commit comments

Comments
 (0)