Skip to content

Commit

Permalink
minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sw-yx committed Mar 18, 2019
1 parent 5b5596f commit 81de3d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/utils/init/config-github.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ async function configGithub(ctx, site, repo) {

// TODO: Look these up and default to the lookup order

// read netlify toml

let defaultBuildCmd,
defaultBuildDir = '.'
const { build } = ctx.netlify.config // read from netlify toml
Expand Down
10 changes: 5 additions & 5 deletions src/utils/init/netlify-toml-template.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ const makeNetlifyTOMLtemplate = ({ command, publish }) => `# example netlify.tom
publish = "${publish}"
# COMMENT: This a rule for Single Page Applications
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
## COMMENT: This a redirect often used for Single Page Applications
#[[redirects]]
# from = "/*"
# to = "/index.html"
# status = 200
## more info https://www.netlify.com/docs/netlify-toml-reference/
`
Expand Down

0 comments on commit 81de3d5

Please sign in to comment.