Skip to content

Commit

Permalink
hardcoding base URL for now
Browse files Browse the repository at this point in the history
  • Loading branch information
alifeinbinary committed Oct 9, 2024
1 parent 2dfaf2a commit 74a0446
Show file tree
Hide file tree
Showing 4 changed files with 257 additions and 5 deletions.
255 changes: 253 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"eslint": "^9.11.1",
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
"eslint-plugin-react-refresh": "^0.4.12",
"gh-pages": "^6.1.1",
"globals": "^15.9.0",
"jest": "^29.7.0",
"jsdom": "^25.0.1",
Expand Down
4 changes: 2 additions & 2 deletions src/components/Post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const Post: React.FC<PostProps> = ({ id, entryId, author, posted, image, width,
<div className="grid w-40">
<div className="relative">
<label htmlFor="post-link" className="sr-only">
ID:<Link to={import.meta.env.VITE_PUBLIC_URL + entryId} className="mx-2 hover:underline">{entryId}</Link>
ID:<Link to={"https://stegg.alifeinbinary.com/#/" + entryId} className="mx-2 hover:underline">{entryId}</Link>
</label>
<input
id="post-link"
Expand All @@ -147,7 +147,7 @@ const Post: React.FC<PostProps> = ({ id, entryId, author, posted, image, width,
readOnly
onClick={handleLinkClick}
/>
<Clipboard.WithIconText label="Copy link" icon={LinkIcon} className="py-1 dark:bg-gray-600 bg-gray-300 hover:bg-gray-200" valueToCopy={`${import.meta.env.VITE_PUBLIC_URL}#/${entryId}`} />
<Clipboard.WithIconText label="Copy link" icon={LinkIcon} className="py-1 dark:bg-gray-600 bg-gray-300 hover:bg-gray-200" valueToCopy={`https://stegg.alifeinbinary.com/#/${entryId}`} />
</div>
</div>
</span>
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ export default defineConfig({
minify: "esbuild",
cssCodeSplit: true,
},
base: "/#/",
base: "/",
});

0 comments on commit 74a0446

Please sign in to comment.