cli
cli copied to clipboard
[Bug]: Theme App Extension - Asset CDN link random UUID
Please confirm that you have:
- [x] Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
- [x] Reproduced the issue in the latest CLI version.
In which of these areas are you experiencing a problem?
Extension
Expected behavior
Running npm app deploy should release a new version of the theme app extension. If asset files are present they should be uploaded to the following url pattern "https://cdn.shopify.com/extensions/$EXTENSION_ID/$EXTENSION_VERSION/assets/$FILE_NAME"
For example where:
extension id = 1234_5678_9123_4567 extension version = 0.0.1 file name = extension.js
The CDN URL should be https://cdn.shopify.com/extensions/1234_5678_9123_4567/0.0.1/assets/extension.js
Actual behavior
The CDN link is of pattern "http://cdn.shopify.com/extensions/$RANDOM_UUID/0.0.1/assets/extension.js"
Verbose output
n/a
Reproduction steps
- Create a theme app extension and include an empty JS file ( extension.js) in the assets folders
- In the liquid file add
- npm run deploy
- Install the theme app extension on a page and view source. Locate the the CDN link and compare the link to the extension id found in the .env file
Operating System
OSX
Shopify CLI version (check your project's package.json if you're not sure)
3.66.0
Shell
bash
Node version (run node -v if you're not sure)
22.6.0
What language and version are you using in your application?
js