App reviews, troubleshooting, and recommendations
how to redirect my login page when throw 400? I catch the error. an infinite redirect loop.
server.use(async (ctx, next) => {
await next().catch(err => {
const {status} = err
if (status == 400) {
ctx.redirect('/login')
}
console.log(err)
ctx.app.emit('error', err, ctx);
});
})
router.get('*', verifyRequest(), async ctx => {
console.log('other---')
await handle(ctx.req, ctx.res);
ctx.respond = false;
ctx.res.statusCode = 200;
const { shop, accessToken } = ctx.session;
});
Connect your PayPal account to allow your customers to checkout using the PayPal gateway a...
ByYour online store speed can enhance your store’s discoverability, boost conversion rates a...
ByShopping is at our fingertips with mobile devices. Is your theme optimized to be user-frie...
By