Просмотр исходного кода

fix(create): Add a slash at the end of assetUrl to avoid being ignored (#2605)

Chris 2 лет назад
Родитель
Сommit
b99dfbc29b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/create/templates/vendure-config.hbs

+ 1 - 1
packages/create/templates/vendure-config.hbs

@@ -76,7 +76,7 @@ export const config: VendureConfig = {
             // For local dev, the correct value for assetUrlPrefix should
             // be guessed correctly, but for production it will usually need
             // to be set manually to match your production url.
-            assetUrlPrefix: IS_DEV ? undefined : 'https://www.my-shop.com/assets',
+            assetUrlPrefix: IS_DEV ? undefined : 'https://www.my-shop.com/assets/',
         }),
         DefaultJobQueuePlugin.init({ useDatabaseForBuffer: true }),
         DefaultSearchPlugin.init({ bufferUpdates: false, indexStockStatus: true }),