-
-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve Netlify bundled configuration
- Add support for using `netlify dev`. This is important if you want to test redirects or use functions. - Removed Link headers. This was breaking stuff locally and Netlify doesn't have a way to apply headers conditionally without using scripts. Honestly, I'm not sure it's really that important anyway. I checked a bunch of sites including Google, Cloudflare, Netlify, Apple, Stripe, and more. None of them set these headers. This simplifies stuff to remove them.
- Loading branch information
Showing
3 changed files
with
13 additions
and
24 deletions.
There are no files selected for viewing
2 changes: 0 additions & 2 deletions
2
bridgetown-core/lib/bridgetown-core/configurations/netlify.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# frozen_string_literal: true | ||
|
||
copy_file in_templates_dir("netlify.toml"), "netlify.toml" | ||
copy_file in_templates_dir("netlify.sh"), "bin/netlify.sh" | ||
`chmod a+x ./bin/netlify.sh` |
13 changes: 0 additions & 13 deletions
13
bridgetown-core/lib/bridgetown-core/configurations/netlify/netlify.sh
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters