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;
});
Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023Summary of EventsBeginning in January of 2023, some merchants reported seeing a large amo...
By Trevor May 15, 2023