|
|
@@ -73,6 +73,10 @@ export const config: VendureConfig = {
|
|
|
AssetServerPlugin.init({
|
|
|
route: 'assets',
|
|
|
assetUploadDir: path.join(__dirname, '../static/assets'),
|
|
|
+ // 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',
|
|
|
}),
|
|
|
DefaultJobQueuePlugin.init({ useDatabaseForBuffer: true }),
|
|
|
DefaultSearchPlugin.init({ bufferUpdates: false, indexStockStatus: true }),
|