PostHog/posthog.com: Official docs, website, and handbook for PostHog.

3 phút đọc

PostHog/posthog.com: Official docs, website, and handbook for PostHog. – Repository PostHog/posthog.com. Mô tả: Official docs, website, and handbook for PostHog.. 1140 stars, 904 forks, ngôn ngữ chính TypeScript, cập nhật 2026-09-16.

1. Repository làm gì?

Support – Roadmap – Open an issue – Style guide

This is the repository for the PostHog website. We treat it like a product. It contains:

AGENTS.md is equipped with instructions for the most fundamental parts of running the app.

If you find places where current documentation is lacking, email cory@posthog.com with the subject, "AGENTS.md".

Install Node (version 22) – if you installed Node using nvm, you can run nvm use to automatically switch to the correct version.

Install pnpm. The easiest way to do this is via corepack use pnpm@latest-10.

PostHog/posthog.com: Official docs, website, and handbook for PostHog.
Hình 1: Minh họa PostHog/posthog.com: Official docs, website, and handbook for PostHog.

2. Dữ liệu và cấu trúc đáng chú ý

Clone the repo and navigate into your new site’s directory:

If you're using an Apple Silicon Mac (M1 or later) you'll need to run the following commands:

Then install the site dependencies, and start it up:

Tip: Seeing a discrepancy between local development and staging/production? Preview the production build locally by running gatsby build && gatsby serve

Open the source code and start editing!

Your site is now running at http://localhost:8001!

Note: You'll also see a second link: http://localhost:8001/___graphql. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.

3. Khả năng ứng dụng và giới hạn

See full instructions on developing PostHog.com locally in our manual.

The site will load the API schema from US Cloud by default. You can override this to use your local PostHog instance with an env var:

Want Ashby job listings or GitHub contributors to load?

You’ll need to set environment variables for these. See (private) instructions for this.

To see your local version of the posts section, /posts needs to be visited directly (http://localhost:8001/posts)

PR previews build with GATSBY_MINIMAL=true (same idea as pnpm build:minimal). Post listing pages such as /tutorials, /blog, and /posts are not generated, so those URLs may break in the preview. Open the direct URL to your doc or post (e.g. /tutorials/your-slug) to review changes. Listings and search stay aligned with production after merge to master. More detail: Developing the website → PR preview deployments.

Additional environment variables are needed to develop the merch store:

Currently, these environment variables are excluded from Vercel preview builds to disable merch store node creation and speed up build times on non-merch related PRs.

To develop a dynamic open graph image:

Số liệu repository có thể thay đổi; nên mở liên kết nguồn để kiểm tra README, giấy phép và trạng thái phát hành.

Nguồn tham khảo: Xem bài gốc

📆
Âm Lịch: 17/8
Giáp Thìn

📆 Lịch Âm Dương NsN

×
Hôm Nay - Chủ Nhật
Âm Lịch: 17 Tháng 8
Năm Bính Ngọ
📌 Ngày Can Chi: Giáp Thìn
✨ Giờ Hoàng Đạo: Dần (3-5), Thìn (7-9), Tỵ (9-11), Thân (15-17), Dậu (17-19), Hợi (21-23)
Vĩnh Phúc (Liên Bảo - Vĩnh Yên)
27°C
Nắng Đẹp
💧 89% | 💨 15 km/h
Hôm nay 32°
28/09 33°
29/09 34°
30/09 33°
01/10 31°