This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { type LoaderFunctionArgs, type ActionFunctionArgs } from "react-router"; | |
| const API_HOST = "us.i.posthog.com"; // use eu.i.posthog.com for EU | |
| const ASSET_HOST = "us-assets.i.posthog.com"; // use eu-assets.i.posthog.com for EU | |
| type RequestInitWithDuplex = RequestInit & { | |
| duplex?: "half"; // https://github.com/microsoft/TypeScript-DOM-lib-generator/issues/1483 | |
| }; | |
| async function posthogProxy(request: Request) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /([ ()-.])/g |