Cache storefront images aggressively while keeping CSS revalidatable.
Split static asset mounts by type and centralize paths in storefrontAssetPaths so icon URLs stay aligned with the server.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { storefrontImgUrlPrefix } from '../config/storefrontAssetPaths';
|
||||
import { PaymentMethod } from '../modules/payment/types/PaymentMethod';
|
||||
|
||||
export const paymentMethodIconUrl: Record<PaymentMethod, string> = {
|
||||
[PaymentMethod.Xmr]: '/shop/assets/img/xmr.png',
|
||||
[PaymentMethod.Btc]: '/shop/assets/img/btc.png'
|
||||
[PaymentMethod.Xmr]: `${storefrontImgUrlPrefix}/xmr.png`,
|
||||
[PaymentMethod.Btc]: `${storefrontImgUrlPrefix}/btc.png`
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user