Claudiu Stoica
Claudiu Stoica

Reputation: 241

shopware app doesn't work in test environment without running build-storefront.js from console?

I have an app for shopware 6 which has a javascript file. After i upload it to my shopware6 site, install and activate it, it doesn't work unless i run the build-storefront.sh from console.

Is there a way to make the app work without running build-storefront.sh ?

I tested it with shopware 6.4.14.0

Upvotes: 2

Views: 570

Answers (1)

j_elfering
j_elfering

Reputation: 3190

All assets like the javascript of your app need to be uploaded inside your app, so the app automatically works without the need to rebuild the storefront after installing your app.

Therefore to create a zip folder for publishing or for uploading you should always execute the build-storefront.sh script, either locally or in a CI step. That command should build all the necessary assets and put them under the Resources/app/storefront/dist folder inside your app.

Please ensure that that folder is included in the zip file you upload to your shop.

Upvotes: 4

Related Questions