Skip to content

Commit

Permalink
Merge pull request #477 from tubone24/zopfil
Browse files Browse the repository at this point in the history
Update gatsby-config.js
  • Loading branch information
tubone24 authored Feb 22, 2021
2 parents 24cb44e + c667588 commit a13d0ae
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/previewDeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
GATSBY_ALGOLIA_APP_ID: ${{secrets.GATSBY_ALGOLIA_APP_ID}}
GATSBY_ALGOLIA_ADMIN_API_KEY: ${{secrets.GATSBY_ALGOLIA_ADMIN_API_KEY}}
FAUNADB_SERVER_SECRET: ${{secrets.FAUNADB_SERVER_SECRET}}
NETLIFY_ENV: develop
NETLIFY_ENV: deploy-preview
run: |
npm install
npm run build
Expand Down
22 changes: 11 additions & 11 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ module.exports = {
// id: 'GTM-WK693R6',
// },
// },
// {
// resolve: 'gatsby-plugin-zopfli',
// options: {
// extensions: ['css', 'html', 'js', 'svg'],
// },
// },
// {
// resolve: 'gatsby-plugin-zopfli',
// options: {
// extensions: ['css', 'html', 'js', 'svg'],
// },
// },
{
resolve: 'gatsby-remark-copy-linked-files',
},
Expand Down Expand Up @@ -154,9 +154,9 @@ module.exports = {
options: {
plugins: [
'gatsby-remark-autolink-headers',
'gatsby-remark-copy-linked-files',
// 'gatsby-remark-copy-linked-files',
'gatsby-remark-embed-youtube',
'gatsby-remark-responsive-iframe',
// 'gatsby-remark-responsive-iframe',
'gatsby-plugin-twitter',
'gatsby-remark-slideshare',
{
Expand Down Expand Up @@ -312,13 +312,13 @@ module.exports = {
options: {
headers: {
'/*.html': [
'cache-control: public, max-age=3600, must-revalidate',
'cache-control: public, max-age=0, must-revalidate',
],
'/*.json': [
'cache-control: public, max-age=3600, must-revalidate',
'cache-control: public, max-age=0, must-revalidate',
],
'/page-data/*': [
'cache-control: public, max-age=3600, must-revalidate',
'cache-control: public, max-age=0, must-revalidate',
],
'/static/*': [
'cache-control: public, max-age=31536000, immutable',
Expand Down

0 comments on commit a13d0ae

Please sign in to comment.