Skip to content

Commit

Permalink
Keep new and old netlify config files
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarvarela committed Nov 28, 2023
1 parent f03b4a8 commit ba6ea8e
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ jobs:

- name: Install Netlify CLI
run: npm install netlify-cli -g

- name: Delete netlify.toml
run: rm -f netlify.toml

- name: Rename github-netlify.toml to netlify.toml
run: mv github-netlify.toml netlify.toml

- name: Build using Netlify
run: netlify build --context deploy-preview
Expand Down
11 changes: 11 additions & 0 deletions site/gatsby-site/github-netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[[plugins]]
package = "@netlify/plugin-gatsby"

[[plugins]]
package = "/plugins/netlify-plugin-create-admin-user"

[[plugins]]
package = "/plugins/netlify-plugin-process-notifications"

[build.processing.html]
pretty_urls = false
18 changes: 17 additions & 1 deletion site/gatsby-site/netlify.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
[build.environment]
CYPRESS_CACHE_FOLDER = "./node_modules/CypressBinary"
TERM = "xterm"

[[plugins]]
package = "@netlify/plugin-gatsby"

[[plugins]]
package = "/plugins/netlify-plugin-create-admin-user"

[[plugins]]
package = "/plugins/netlify-plugin-process-notifications"
package = "netlify-plugin-cypress"
[plugins.inputs]
enable = false
[plugins.inputs.postBuild]
enable = true
record = false
spa = true
start = 'gatsby serve -p 8080'
browser = 'chromium'

# tmp disable
# [[plugins]]
# package = "/plugins/netlify-plugin-process-notifications"

[build.processing.html]
pretty_urls = false

0 comments on commit ba6ea8e

Please sign in to comment.