39 |

40 |
Ship faster with Postgres
41 |
The database you love, on a serverless platform designed to help you build reliable and scalable applications faster.
42 |
This project is open-sourced. For information about how it works and what you can do with it check it out on GitHub.
43 | If something is broken, please let us know.
44 |
52 |
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/client/lib/analytics.ts:
--------------------------------------------------------------------------------
1 | import { AnalyticsBrowser } from "@segment/analytics-next";
2 |
3 | export const analytics = AnalyticsBrowser.load(
4 | {
5 | writeKey: import.meta.env.VITE_SEGMENT_WRITE_KEY ?? "",
6 | cdnURL: "https://analytics.neon.tech",
7 | },
8 | {
9 | integrations: {
10 | "Segment.io": {
11 | apiHost: "track.neon.tech/v1",
12 | },
13 | },
14 | },
15 | );
16 |
17 | analytics.identify();
18 | analytics.page();
19 |
--------------------------------------------------------------------------------
/client/lib/api.ts:
--------------------------------------------------------------------------------
1 | import { createTRPCProxyClient, httpBatchLink } from "@trpc/client";
2 | import type { AppRouter } from "../../server/router";
3 |
4 | export const client = createTRPCProxyClient