Add copy-to-clipboard for crypto payment amounts and addresses.
Mount storefront JS assets, hide copy controls without JavaScript, and load per-page copy handling on checkout and order views.
This commit is contained in:
+7
-1
@@ -8,8 +8,10 @@ import path from 'node:path';
|
||||
import {
|
||||
getStorefrontCssDir,
|
||||
getStorefrontImgDir,
|
||||
getStorefrontJsDir,
|
||||
storefrontCssUrlPrefix,
|
||||
storefrontImgUrlPrefix
|
||||
storefrontImgUrlPrefix,
|
||||
storefrontJsUrlPrefix
|
||||
} from './config/storefrontAssetPaths';
|
||||
import { getPublicUploadsDir, publicUploadsUrlPrefix } from './config/uploadPaths';
|
||||
import { AppModule } from './AppModule';
|
||||
@@ -42,6 +44,10 @@ async function bootstrap() {
|
||||
prefix: storefrontCssUrlPrefix
|
||||
});
|
||||
|
||||
app.useStaticAssets(getStorefrontJsDir(), {
|
||||
prefix: storefrontJsUrlPrefix
|
||||
});
|
||||
|
||||
app.use(cookieParser());
|
||||
|
||||
if (nodeEnv === NodeEnv.Production) {
|
||||
|
||||
Reference in New Issue
Block a user