figma / ai-plugin-template

An example of making a Figma plugin that talks to OpenAI GPT models.
MIT License
92 stars 17 forks source link

fix: invalid deployment instructions #10

Open florrdv opened 1 month ago

florrdv commented 1 month ago

The Vercel deployment instructions include a trailing slash, which causes the origin checks in onmessage (dd2b2c59183b39903ef264616d8b3f862a7435df) to fail due to props.origin not including this trailing slash. This causes the onmessage handler to return early and none of the code there to be executed.

This PR introduces a small change to the deployment instructions to account for origin checking & updates package.json to remove the trailing slash from siteURL.

florrdv commented 1 month ago

Should resolve https://github.com/figma/ai-plugin-template/issues/9

klyap commented 1 month ago

Tested and confirmed that this fix worked for me!