diff --git a/webpack.config.js b/webpack.config.js index f7dc080..d8f760e 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -87,16 +87,16 @@ const CopyAssetsPlugin = { // Copy index.html to payment/success directory for callback const indexSrc = path.resolve(__dirname, 'dist/index.html'); const paymentSuccessDir = path.resolve(__dirname, 'dist/payment/success'); - const paymentSuccessDest = path.resolve(__dirname, 'dist/payment/success/index.html'); + const paymentSuccessDest = path.resolve(__dirname, 'dist/payment/success/success'); try { // Create payment/success directory if it doesn't exist if (!fs.existsSync(paymentSuccessDir)) { fs.mkdirSync(paymentSuccessDir, { recursive: true }); } cpSync(indexSrc, paymentSuccessDest); - console.log('Index.html copied to payment/success successfully'); + console.log('Index.html copied to payment/success/success successfully'); } catch (err) { - console.error('Error copying index.html to payment/success:', err); + console.error('Error copying index.html to payment/success/success:', err); } }); },