Skip to content

Conversation

yurynix
Copy link
Collaborator

@yurynix yurynix commented Jul 17, 2025

Steps I do:

  1. patch headless-site to use templateId 99b9a3c7-82ad-4e1b-9066-e490bb9863af instead of 212b41cb-0da6-4401-9c72-7c579e6477a2 so it won't create a site with stores so we'll be able to add storesV3
./build/index.js:114500:    siteTemplateId: "212b41cb-0da6-4401-9c72-7c579e6477a2",
./build/index.js:114808:var BLANK_PROJECT_TEMPLATE_ID = "212b41cb-0da6-4401-9c72-7c579e6477a2";

How to find the path where to patch:

Lets say you want to modify some program you're calling via npm create ...
and you want to know where npm puts the kodim so you can edit them, you can do that by modifying:
vim npm root -g/npm/node_modules/@npmcli/promise-spawn/lib/index.js
around line 18, put something like:
console.log(NPX spawn cmd params -> cmd: ${cmd} args: ${args} env PATH(first element): ${opts.env['PATH'].split(':')[0]});`

the printout will be something like that:
NPX spawn cmd params -> cmd: sh args: -c,create-headless-site env PATH(first element): /Users/yurym/.npm/_npx/3204a0b61a95e1f5/node_modules/.bin
the last part is the path where the local code is cached.

  1. npm create @wix/headless-site@latest and create a blank site
  2. Add stores v3 to it, experiment on: api-proxy-com.wixpress.stores.catalog.proxy.catalog-read-proxy
  3. copy the system prompt to the project directory and open cursor
  4. Install npm i @wix/headless-ecom @wix/headless-media @wix/headless-seo @wix/headless-stores @wix/stores --force
  5. Optional: install tailwind css astro integration
  6. Tell cursor something like that:

Read carefully system-prompt.md file and follow it when you build a store in this direcroty for and FPV drone online shop. Make the design using tailwind css

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant