diff --git a/instrumentation-client.ts b/instrumentation-client.ts
index b9d0899..b320c1b 100644
--- a/instrumentation-client.ts
+++ b/instrumentation-client.ts
@@ -1,9 +1,9 @@
-import posthog from "posthog-js";
+// import posthog from "posthog-js";
-posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY!, {
- api_host: "/ingest",
- ui_host: "https://us.posthog.com",
- defaults: "2025-05-24",
- capture_exceptions: true, // This enables capturing exceptions using Error Tracking, set to false if you don't want this
- debug: process.env.NODE_ENV === "development",
-});
+// posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY!, {
+// api_host: "/ingest",
+// ui_host: "https://us.posthog.com",
+// defaults: "2025-05-24",
+// capture_exceptions: true, // This enables capturing exceptions using Error Tracking, set to false if you don't want this
+// debug: process.env.NODE_ENV === "development",
+// });
diff --git a/next.config.ts b/next.config.ts
index fbe2a37..077d7c2 100644
--- a/next.config.ts
+++ b/next.config.ts
@@ -1,33 +1,43 @@
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
- /* config options here */
- eslint: {
- ignoreDuringBuilds: true,
- },
+ /* config options here */
+ eslint: {
+ ignoreDuringBuilds: true,
+ },
- images: {
- remotePatterns: [
- {
- hostname: "api.post0.live",
- protocol: "https",
- pathname: "/**",
- },
- ],
- },
- async rewrites() {
- return [
- {
- source: "/ingest/static/:path*",
- destination: "https://us-assets.i.posthog.com/static/:path*",
- },
- {
- source: "/ingest/:path*",
- destination: "https://us.i.posthog.com/:path*",
- },
- ];
- },
- skipTrailingSlashRedirect: true,
+ images: {
+ remotePatterns: [
+ {
+ hostname: "api.post0.live",
+ protocol: "https",
+ pathname: "/**",
+ },
+ {
+ hostname: "images.unsplash.com",
+ protocol: "https",
+ pathname: "/**",
+ },
+ {
+ hostname: "res.cloudinary.com",
+ protocol: "https",
+ pathname: "/**",
+ },
+ ],
+ },
+ async rewrites() {
+ return [
+ {
+ source: "/ingest/static/:path*",
+ destination: "https://us-assets.i.posthog.com/static/:path*",
+ },
+ {
+ source: "/ingest/:path*",
+ destination: "https://us.i.posthog.com/:path*",
+ },
+ ];
+ },
+ skipTrailingSlashRedirect: true,
};
export default nextConfig;
diff --git a/src/app/gallery/page.tsx b/src/app/gallery/page.tsx
index 78ffe42..d5b0696 100644
--- a/src/app/gallery/page.tsx
+++ b/src/app/gallery/page.tsx
@@ -11,7 +11,6 @@ import { Search, Filter } from "lucide-react";
import { AssetType } from "@/types/asset";
import FileUploadZone from "@/components/gallery/FileUploadZone";
import AssetGrid from "@/components/gallery/AssetGrid";
-import GallerySkeleton from "@/components/gallery/GallerySkeleton";
import AssetEditModal from "@/components/gallery/AssetEditModal";
import { Asset, useGalleryAssets } from "@/hooks/data/use-assets";
@@ -83,8 +82,6 @@ export default function GalleryPage() {
/>
-
- {galleryLoading &&
- There was an error loading your posts. Please check your - connection and try again. -
-+ There was an error loading your posts. Please check + your connection and try again. +
+- Your social media posts in one place -
-+ Your social media posts in one place +
+- {searchQuery || - selectedPlatform !== "ALL" || - selectedStatus !== "ALL" - ? "Try adjusting your search criteria or clear the filters to see more posts." - : "Get started by creating your first social media post. Share your content across multiple platforms effortlessly."} -
-+ {searchQuery || + selectedPlatform !== "ALL" || + selectedStatus !== "ALL" + ? "Try adjusting your search criteria or clear the filters to see more posts." + : "Get started by creating your first social media post. Share your content across multiple platforms effortlessly."} +
+- We couldn't load the schedule details. Please try again. -
- + if (isError || !schedule) { + return ( ++ We couldn't load the schedule details. + Please try again. +
+ +Date Range
-Settings
-+ Date Range +
++ Settings +
+- {isUploading - ? "Please wait while files are being uploaded" - : "Drag and drop files here, or click to browse"} -
-- Supports images and videos up to {maxFileSize}MB -
- > - )} - {variant === "compact" && !isUploading && ( -- {isDragActive ? "Drop to upload" : `Max ${maxFileSize}MB`} -
- )}+ {isUploading + ? "Please wait while files are being uploaded" + : "Drag and drop files here, or click to browse"} +
++ Supports images and videos up to {maxFileSize}MB +
+ > + )} + {variant === "compact" && !isUploading && ( ++ {isDragActive ? "Drop to upload" : `Max ${maxFileSize}MB`} +
)} {variant !== "compact" && ( @@ -402,7 +391,6 @@ const FileUploadZone: React.FC{session?.user.name || "User"}
-- {moment(post.createdAt).fromNow()} -
-- {post.text} -
-+ {session?.user.name || "User"} +
++ {moment( + post.createdAt, + ).fromNow()} +
++ {post.text} +
++ No posts scheduled for this date +
+ } + onPress={() => handleCreateNewPost()} + > + Create Post + +No posts scheduled for this date
- } - onPress={() => handleCreateNewPost()} - > - Create Post - -- Click to add content to this post -
- ) : ( -- {post.text} -
- )} - {post.isAIgenerated && ( -+ Click to add content to this post +
+ ) : ( ++ {post.text} +
+ )} + {post.isAIgenerated && ( +