Skip to content

Commit bfbb667

Browse files
committed
Username link fix, deployed in vercel
1 parent c16fa58 commit bfbb667

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ dist-ssr
2222
*.njsproj
2323
*.sln
2424
*.sw?
25+
.vercel

src/components/GitSequencer.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ const GitSequencer = () => {
476476

477477
// URL to clipboard
478478
const handleShare = () => {
479-
const shareUrl = `${window.location.origin}?user=${encodeURIComponent(username)}`;
479+
const shareUrl = `${window.location.origin}/${encodeURIComponent(username)}`;
480480
navigator.clipboard.writeText(shareUrl).then(() => {
481481
setShowToast(true);
482482
}).catch(() => {

vercel.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"rewrites": [
3+
{
4+
"source": "/:path*",
5+
"destination": "/index.html"
6+
}
7+
]
8+
}

0 commit comments

Comments
 (0)