This script helps to import a huge amount of redirects into a Shopify shop. It gives more control over the process than the default import from Shopify's UI.
- Put redirects into redirects.json
- Create .env file based on .env.example
- SHOP - domain of target shop
- ACCESS_TOKEN - can be obtained using this guide
- UPDATE_EXISTING_REDIRECTS - update existing redirect if its path matches a path from the redirects.json
- Install dependencies
yarn install - Launch the script
yarn start
sudo docker build -t shopify-redirects-importer .sudo docker run shopify-redirects-importer:latest