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
10 changes: 10 additions & 0 deletions apps/docs/content/docs/ai/troubleshooting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,13 @@ If the agent built against stale schema, or TypeScript errors reference fields t
ProofKit apps rely on generated metadata. If your FileMaker schema changes but the project still uses old generated files, the agent will confidently write code against the wrong shape.

Use the [TypeGen docs](/docs/typegen) when the issue is clearly about generated types, layouts, or config.

## FileMaker says access privileges are damaged [#access-privileges-damaged]

If FileMaker shows a warning that says **"The access privileges in this file have been damaged or possibly tampered with"**, and the file previously had **PROOFKIT** installed in it, contact us at [support@proof.sh](mailto:support@proof.sh).

![FileMaker warning that the access privileges in the file have been damaged or possibly tampered with.](/screenshots/ai/filemaker-access-privileges-warning.png)

This issue only affected files where the ProofKit add-on was installed with **ProofKit 2.04**. We fixed the add-on in later versions, but in affected files the 2.04 add-on could fail to uninstall cleanly.

We have a fix for affected files. Send us a note at [support@proof.sh](mailto:support@proof.sh), mention that the file had **PROOFKIT** installed, and we can help repair it.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions apps/docs/src/app/layout.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ export const baseOptions = {
<Image
alt="ProofKit"
className="block h-auto w-[96px] dark:hidden"
height={150}
height={804}
src="/logo-horiz-light.svg"
width={96}
width={2585}
/>
<Image
alt="ProofKit"
className="hidden h-auto w-[96px] dark:block"
height={150}
height={804}
src="/logo-horiz-dark.svg"
width={96}
width={2585}
/>
</>
),
Expand Down
8 changes: 2 additions & 6 deletions apps/docs/src/instrumentation-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ import { ENV } from "varlock/env";

const posthogToken = ENV.NEXT_PUBLIC_POSTHOG_PROJECT_TOKEN;
const posthogHost = "/api/posthog";
const isPostHogEnabled = process.env.NODE_ENV === "production" && Boolean(posthogToken);

if (posthogToken) {
if (isPostHogEnabled) {
posthog.init(posthogToken, {
api_host: posthogHost,
autocapture: {
Expand All @@ -14,10 +15,5 @@ if (posthogToken) {
capture_pageview: true,
defaults: "2026-01-30",
disable_session_recording: true,
loaded: (client) => {
if (process.env.NODE_ENV === "development") {
client.debug();
}
},
});
}
2 changes: 1 addition & 1 deletion apps/docs/src/lib/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { ENV } from "varlock/env";

type AnalyticsProperties = Record<string, boolean | number | string | null | undefined>;

const isPostHogEnabled = Boolean(ENV.NEXT_PUBLIC_POSTHOG_PROJECT_TOKEN);
const isPostHogEnabled = process.env.NODE_ENV === "production" && Boolean(ENV.NEXT_PUBLIC_POSTHOG_PROJECT_TOKEN);

export function captureEvent(event: string, properties: AnalyticsProperties = {}) {
if (!isPostHogEnabled) {
Expand Down
Loading