Skip to content

Commit be40f3c

Browse files
committed
Undo Patch Gatsby Config
1 parent a5a0506 commit be40f3c

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

.github/workflows/deploy-production.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -105,19 +105,6 @@ jobs:
105105
106106
- run: npm install
107107

108-
- name: Patch Gatsby Config
109-
run: |
110-
node -e "
111-
const fs = require('fs');
112-
const configFile = 'gatsby-config.js';
113-
let content = fs.readFileSync(configFile, 'utf-8');
114-
const oldString = 'path: \`\${__dirname}/content\`,';
115-
const newString = 'path: \`\${__dirname}/content\`,\\n ignore: [\`**/*.zip\`, \`**/*.mp4\`, \`**/*.pdf\`, \`**/*.gif\`],';
116-
content = content.replace(oldString, newString);
117-
fs.writeFileSync(configFile, content);
118-
console.log('Patched gatsby-config.js');
119-
"
120-
121108
- name: Verify Gatsby Config
122109
run: cat gatsby-config.js
123110

.github/workflows/deploy-staging.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -105,19 +105,6 @@ jobs:
105105
106106
- run: npm install
107107

108-
- name: Patch Gatsby Config
109-
run: |
110-
node -e "
111-
const fs = require('fs');
112-
const configFile = 'gatsby-config.js';
113-
let content = fs.readFileSync(configFile, 'utf-8');
114-
const oldString = 'path: \`\${__dirname}/content\`,';
115-
const newString = 'path: \`\${__dirname}/content\`,\\n ignore: [\`**/*.zip\`, \`**/*.mp4\`, \`**/*.pdf\`, \`**/*.gif\`],';
116-
content = content.replace(oldString, newString);
117-
fs.writeFileSync(configFile, content);
118-
console.log('Patched gatsby-config.js');
119-
"
120-
121108
- name: Verify Gatsby Config
122109
run: cat gatsby-config.js
123110

0 commit comments

Comments
 (0)