mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-08 04:55:06 +09:00
## Description Link to `apps.webstudio.is/n8n/anything` solves 2 things. 1. Login user if it's not logged in 2. Executes schema in n8n passing userId and all query parameters inside. Example: ``` https://n8n.prs.webstudio.is/n8n/buy/stripe/com?link=test_dR67uJ0bu3fS2Zi4gh ``` Will execute [dev schema](https://webstudio.app.n8n.cloud/workflow/mdNfsFIIwnoMsz6N) hook `${N8N_WEBHOOK_URL}/buy/stripe/com?link=test_dR67uJ0bu3fS2Zi4gh` ```env N8N_WEBHOOK_URL="https://webstudio.app.n8n.cloud/webhook-test/" ``` Schema after work will respond or with error or with redirect. ## Steps for reproduction Open [n8n dev schema](https://webstudio.app.n8n.cloud/workflow/mdNfsFIIwnoMsz6N) Execute in Dev Mode (at bottom) Open URL [https://n8n.prs.webstudio.is/n8n/buy/stripe/com?link=test_dR67uJ0bu3fS2Zi4gh](https://n8n.prs.webstudio.is/n8n/buy/stripe/com?link=test_dR67uJ0bu3fS2Zi4gh) See it works ## Code Review - [ ] hi @kof, I need you to do - conceptual review (architecture, feature-correctness) - detailed review (read every line) - test it on preview ## Before requesting a review - [ ] made a self-review - [ ] added inline comments where things may be not obvious (the "why", not "what") ## Before merging - [ ] tested locally and on preview environment (preview dev login: 5de6) - [ ] updated [test cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md) document - [ ] added tests - [ ] if any new env variables are added, added them to `.env.example` and the `builder/env-check.js` if mandatory