I have 2 projects hosted on vercel. The first is live and working correctly. Its name is ‘seed_name_badge’ and the main application page is https://seednamebadge.vercel.app/. This application has a widget that’s inserted into our Squarespace website and the widget is working correctly.
The second project is new and was created by duplicating the first one. The second project is named seed_name_badges_v2 and the main application page is https://seednamebadgesv2.vercel.app/. The application is showing correctly on that main page. However when I embed the widget into a page on our Squarespace website the widget doesn’t show. There are no console errors on that page, however the page sources shows it’s opening the first project and also this second one (see screenshot). The widget-calculator.js file should be in the seednamebadgesv2.vercel.app section.
The widget code embedded on the page is:
The widget is currently inserted into this test page - Plantable Seed Paper Name Badges – Eco-Friendly Name Tags Australia. Scroll down to under the ‘order now or email yourself a quote’ heading.
From what I can see all URLs in the new project are pointing to the https://seednamebadgesv2.vercel.app URL. I can’t see why the first project is opening in this second one. Is there something in Vercel I need to change to get the widget showing?
For reference:
• The first project URL (seednamebadge.vercel.app) is not hard coded in the second project.
• Because the second project was created by duplicating the first, and we want most of the same connections to external accounts, the environment variables are very similar in both projects.
• I’ve tried embedding the widget into a fresh page in our Squarespace website and that hasn’t fixed it.
• I can’t see any endpoints pointing to the first project.
• I can’t see any redirects or rewrites that may be the issue.
• There are no logs because the widget hasn’t loaded yet.
• I have cache busting code in the new project to try and prevent the first one being loaded.
• The CORS in both projects allow the domain the widget is hosted on.
If anyone is able to help get the widget showing that’d be awesome.
Thank you.