Skip to content

Netlify

Two lines in _redirects.

  1. Create or edit public/_redirects

    The trailing 200 is the important bit: without it Netlify redirects instead of proxying, and the browser ends up on pisi.to.

    /js/llave.js   https://pisi.to/js/llave.js   200
    /api/event     https://pisi.to/api/event     200
    _redirects
  2. Deploy and point the script

    You can also declare this in netlify.toml if you prefer one file for everything.

    <script defer
            data-domain="example.com"
            data-api="https://example.com/api/event"
            src="https://example.com/js/llave.js"></script>
    html

Check that it works

Open your site in a new tab and watch the dashboard: you should show up under "home right now" in under ten seconds. If you do not, run through the onboarding checklist.