# xhs-embed Small embed service for rednote, otherwise known as xiaohongshu ## Deployment `pnpm run deploy` You might have to also deploy the external proxy on a server you own; rednote might not return the needed data otherwise 1. Build the proxy in [`./external-proxy`](./external-proxy) with `go build` and deploy it somewhere * You'll have to set an auth key in the environment variable `XHS_PROXY_AUTH`, keep this secret! 2. In your Cloudflare dashboard, go to the deployed worker and add following secrets: * `XHS_PROXY`: URL to your proxy (e.g. `https://not-a-proxy.patriick.dev`) * `XHS_PROXY_AUTH`: The key you set above