Layr-Labs / Layr-Labs/eigencloud-docs

Copy for LLM button not working

Open
#167 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
8
Forks
9
PR merge metrics
No merged PRs in 30d

Description

I noticed that on the website the Copy for LLM button isn't working correctly:
image

I tried locally and it works:
image

I think the vercel.json config currently blocks clipboard-write with clipboard-write=(). I think the version that would allow clipboard-write for same-origin only would use clipboard-write=(self)` on the deployment would look something like this:

{
  "build": {
    "env": {
      "YARN_VERSION": "1.22.22"
    }
  },
  "headers": [
    {
      "source": "/(.*)",
      "headers": [
        {
          "key": "Permissions-Policy",
          "value": "clipboard-write=(self)"
        }
      ]
    }
  ]
}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Inspect vercel.json and the deployed Permissions-Policy header for the documentation website. Compare the current clipboard-write setting with the proposed same-origin policy, then verify that the Copy for LLM button works on the deployed site.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
documentation
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.