Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Where to place code that needs to run right after merchant installs the app (Shopify Remix Template)

Where to place code that needs to run right after merchant installs the app (Shopify Remix Template)

sumanthjois1996
Shopify Partner
22 0 5

I have some piece of code that needs to run ones when the merchant installs the app. After doing some research I found that afterAuth Hook in shopify.server.js file might be the right place.

 

But that doesn't work for my case as It doesn't give you access to the request object. I need to access the X-Forwarded-For value from request.

 

Any idea how to go about this?

PageCrafter - Build Beautiful Product Descriptions that Improve Conversion

DM me your product page and I will help you improve it for free.
Replies 0 (0)