Split static asset mounts by type and centralize paths in storefrontAssetPaths so icon URLs stay aligned with the server.
13 lines
460 B
TypeScript
13 lines
460 B
TypeScript
import path from 'node:path';
|
|
|
|
export const storefrontImgUrlPrefix = '/shop/assets/img';
|
|
|
|
export const storefrontCssUrlPrefix = '/shop/assets/css';
|
|
|
|
export const getStorefrontPublicDir = (): string =>
|
|
path.join(__dirname, '..', 'modules', 'storefrontCore', 'public');
|
|
|
|
export const getStorefrontImgDir = (): string => path.join(getStorefrontPublicDir(), 'img');
|
|
|
|
export const getStorefrontCssDir = (): string => path.join(getStorefrontPublicDir(), 'css');
|