From 9362d84ccae5055c2a14f490970e2204ea0595ba Mon Sep 17 00:00:00 2001 From: Simon Dupree Date: Tue, 6 Aug 2024 13:43:45 +0100 Subject: [PATCH] remove unused files --- heroku.yml | 5 ----- web/database/connect.js | 7 +------ web/frontend/README.md | 16 ---------------- 3 files changed, 1 insertion(+), 27 deletions(-) delete mode 100644 heroku.yml delete mode 100644 web/frontend/README.md diff --git a/heroku.yml b/heroku.yml deleted file mode 100644 index 14b862a..0000000 --- a/heroku.yml +++ /dev/null @@ -1,5 +0,0 @@ -build: - docker: - web: Dockerfile - config: - SHOPIFY_API_KEY: 9e0c6475b9b969820a6c28bb0014ee6c diff --git a/web/database/connect.js b/web/database/connect.js index 9d87d1b..54c7ab1 100644 --- a/web/database/connect.js +++ b/web/database/connect.js @@ -17,13 +17,8 @@ const connectionString = config.DATABASE_URL; // eslint-disable-next-line prefer-regex-literals const isInsertOrUpdateRegex = new RegExp(/(UPDATE(.|\n)*SET)|(INSERT INTO)/i); -// if you want to connect to heroku database you need to add: -// ssl: { rejectUnauthorized: false } -// to the below object -// eslint-disable-next-line no-underscore-dangle - if (!connectionString) { - throw new Error("Environment variable DATABASE_URL must be set"); + throw new Error('Environment variable DATABASE_URL must be set'); } const pool = new Pool({ diff --git a/web/frontend/README.md b/web/frontend/README.md deleted file mode 100644 index 3d964fd..0000000 --- a/web/frontend/README.md +++ /dev/null @@ -1,16 +0,0 @@ -# Shopify React Frontend App - -[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE.md) - -This repository is the frontend for Shopify’s app starter templates. **You probably don’t want to use this repository directly**, but rather through one of the templates and the [Shopify CLI](https://github.com/Shopify/shopify-cli). - -## Developer resources - -- [Introduction to Shopify apps](https://shopify.dev/apps/getting-started) - - [App authentication](https://shopify.dev/apps/auth) -- [Shopify CLI command reference](https://shopify.dev/apps/tools/cli/app) -- [Shopify API Library documentation](https://github.com/Shopify/shopify-node-api/tree/main/docs) - -## License - -This repository is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).