Skip to content

Commit 4f06bba

Browse files
authored
Fixed Tailwind Issues (#118)
* Fixed Tailwind Issues * Update gatsby-config.js * Fix CI: upgrade to Node 20 and pin dependencies with package-lock.json * Fix CI: use --legacy-peer-deps and remove package-lock.json from gitignore
1 parent 3b0fb17 commit 4f06bba

8 files changed

Lines changed: 26184 additions & 24 deletions

File tree

.github/workflows/cd.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@ jobs:
1212
- name: Install libvips
1313
run: sudo apt-get install libvips
1414
- uses: actions/checkout@v2
15-
- name: Setup Node 18
15+
- name: Setup Node 20
1616
uses: actions/setup-node@v2
1717
with:
18-
node-version: '18'
18+
node-version: '20'
1919
- name: Install dependencies
20-
run: |
21-
npm i --force --unsafe-perm
20+
run: npm ci --legacy-peer-deps --unsafe-perm
2221
- name: Force installing sharp
2322
run: npm install --ignore-scripts=false --verbose sharp@0.30.7 --force --unsafe-perm
2423
- name: 'Create env file'

.github/workflows/ci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,12 @@ jobs:
1111
- name: Install libvips
1212
run: sudo apt-get install libvips
1313
- uses: actions/checkout@v2
14-
- name: Setup Node 18
14+
- name: Setup Node 20
1515
uses: actions/setup-node@v2
1616
with:
17-
node-version: '18'
17+
node-version: '20'
1818
- name: Install dependencies
19-
run: |
20-
rm -rf node_modules && npm i --force --unsafe-perm
19+
run: npm ci --legacy-peer-deps --unsafe-perm
2120
- name: Force installing sharp
2221
run: npm install --ignore-scripts=false --verbose sharp@0.30.7 --force --unsafe-perm
2322
- name: 'Create env file'

.github/workflows/staging-cd.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,12 @@ jobs:
1212
- name: Install libvips
1313
run: sudo apt-get install libvips
1414
- uses: actions/checkout@v2
15-
- name: Setup Node 18
15+
- name: Setup Node 20
1616
uses: actions/setup-node@v2
1717
with:
18-
node-version: '18'
18+
node-version: '20'
1919
- name: Install dependencies
20-
run: |
21-
rm -rf .cache node_modules
22-
npm i --force --unsafe-perm
20+
run: npm ci --legacy-peer-deps --unsafe-perm
2321
- name: Force installing sharp
2422
run: npm install --ignore-scripts=false --verbose sharp@0.30.7 --force --unsafe-perm
2523
- name: 'Create env file'

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ public
44
.idea/*
55
*.iml
66
.DS_Store
7-
package-lock.json

gatsby-config.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,15 @@ module.exports = {
1616
"gatsby-plugin-postcss",
1717
"gatsby-plugin-sass",
1818
"gatsby-plugin-image",
19-
"gatsby-transformer-remark",
2019
"gatsby-plugin-sharp",
2120
"gatsby-transformer-sharp",
2221
'gatsby-plugin-react-helmet',
22+
{
23+
resolve: 'gatsby-plugin-env-variables',
24+
options: {
25+
allowList: ['TYPESENSE_HOST', 'TYPESENSE_PORT', 'TYPESENSE_PROTOCOL', 'TYPESENSE_API_KEY', "TYPESENSE_SEARCH_API_KEY", "TYPESENSE_COLLECTION"],
26+
},
27+
},
2328
{
2429
resolve: `gatsby-plugin-s3`,
2530
options: {
@@ -104,12 +109,6 @@ module.exports = {
104109
},
105110
},
106111
},
107-
{
108-
resolve: 'gatsby-plugin-env-variables',
109-
options: {
110-
allowList: ['TYPESENSE_HOST', 'TYPESENSE_PORT', 'TYPESENSE_PROTOCOL', 'TYPESENSE_API_KEY', "TYPESENSE_SEARCH_API_KEY", "TYPESENSE_COLLECTION"],
111-
},
112-
}
113112
],
114113
},
115114
}

0 commit comments

Comments
 (0)