I’ve managed to resolve this ‘undefined’ issue by copying the .env file to process.env, as the server.js was trying to get the configuration from the absent process.env file. Now, I’m properly redirecting to my development store’s URL instead of undefined. However, I’m still getting another error in my console which I’m trying to solve now:
InternalServerError: Cannot complete OAuth process. Could not find an OAuth cookie for shop url: qarea-test-store.myshopify.com
┃ at Object.throw (/var/www/test_node_app-2/node_modules/koa/lib/context.js:97:11)
┃ at /var/www/test_node_app-2/node_modules/@shopify/koa-shopify-auth/dist/src/auth/index.js:100:42
┃ at step (/var/www/test_node_app-2/node_modules/tslib/tslib.js:133:27)
┃ at Object.throw (/var/www/test_node_app-2/node_modules/tslib/tslib.js:114:57)
┃ at rejected (/var/www/test_node_app-2/node_modules/tslib/tslib.js:105:69)
┃ at runMicrotasks (
UPDATE: the above error can be fixed using this [patch](https://gist.github.com/charliefuller/e5b65e706886f818d0109f03230810d6) which I found here in this [shopify node app issue request](https://github.com/Shopify/shopify-node-api/issues/130).