diff --git a/public/images/icons/icon-256x256.png b/public/images/icons/icon-256x256.png new file mode 100644 index 0000000..494e6a2 Binary files /dev/null and b/public/images/icons/icon-256x256.png differ diff --git a/public/images/icons/icon-384x384.png b/public/images/icons/icon-384x384.png new file mode 100644 index 0000000..4435db2 Binary files /dev/null and b/public/images/icons/icon-384x384.png differ diff --git a/public/images/icons/icon-512x512.png b/public/images/icons/icon-512x512.png new file mode 100644 index 0000000..802ad26 Binary files /dev/null and b/public/images/icons/icon-512x512.png differ diff --git a/public/index.html b/public/index.html index 58118b7..9d434fd 100644 --- a/public/index.html +++ b/public/index.html @@ -54,6 +54,24 @@ sizes="192x192" href="%PUBLIC_URL%/images/icons/android-icon-192x192.png" /> + + + = ({ const formatSinceEdited = fd.getTimeFromNow(data.edited); const formatedUpvotes = fd.shortenLargeNumber(data.ups); const upvotes = data.ups > 1 ? 'upvotes' : 'upvote'; - const url = process.env.PUBLIC_URL || 'http://localhost:3000'; + const url = process.env.REACT_APP_VERCEL_URL || 'http://localhost:3000'; const shareUrl = `${url}/#/post/${data.subreddit}/comments/${postId}`; let authorDisplay; diff --git a/src/components/Card/postCard/index.tsx b/src/components/Card/postCard/index.tsx index 1249db9..312b7ec 100644 --- a/src/components/Card/postCard/index.tsx +++ b/src/components/Card/postCard/index.tsx @@ -112,7 +112,7 @@ const PostCard: React.FC = ({ preview = null; } - const url = process.env.PUBLIC_URL || 'http://localhost:3000'; + const url = process.env.REACT_APP_VERCEL_URL || 'http://localhost:3000'; const shareUrl = `${url}/#/post/${data.subreddit}/comments/${data.id}`; return (