Skip to content

derom/shopify-redirects-importer

Repository files navigation

Purpose

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.

Prerequisites

  • Put redirects into redirects.json
  • Create .env file based on .env.example

Configuration (.env)

  • 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

Launch locally

  • Install dependencies yarn install
  • Launch the script yarn start

Launch locally in docker

  • sudo docker build -t shopify-redirects-importer .
  • sudo docker run shopify-redirects-importer:latest

About

A script to import redirects into Shopify shop.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors