Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions instrumentation-client.ts
Original file line number Diff line number Diff line change
@@ -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",
// });
62 changes: 36 additions & 26 deletions next.config.ts
Original file line number Diff line number Diff line change
@@ -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;
3 changes: 0 additions & 3 deletions src/app/gallery/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -83,8 +82,6 @@ export default function GalleryPage() {
/>
</CardBody>
</Card>

{galleryLoading && <GallerySkeleton />}
<div className="mb-6">
<div className="flex flex-col sm:flex-row gap-3 mb-3">
<Input
Expand Down
5 changes: 4 additions & 1 deletion src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
@config '../../tailwind.config.js';

.dark-background {
@apply bg-background dark:bg-[#16171B];
@apply bg-background dark:bg-[#16171B];
}
.linkedin-preview__wrapper {
padding: 0px !important;
}
Loading