Skip to content

Commit

Permalink
Update npm packages and deployment settings. Remove Netlify functions…
Browse files Browse the repository at this point in the history
… support as it now requires using netlify-cli with authentication (netlify-lambda package deprecated).
  • Loading branch information
wjh18 committed Feb 24, 2023
1 parent 41a08a4 commit 0f1d222
Show file tree
Hide file tree
Showing 8 changed files with 1,404 additions and 13,071 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ Below are the current features of this theme. Features labeled *optional* or *fr
### Netlify

* Custom headers / redirects with Netlify (optional)
* Netlify functions support (optional)
* Netlify forms support for newsletter opt-in and contact page (optional)
* Sample `netlify.toml` file for streamlined deployment

Expand Down Expand Up @@ -92,7 +91,7 @@ Below are the current features of this theme. Features labeled *optional* or *fr
* CSS and JS minification
* Frontend build pipeline with ESBuild and ToCSS
* PostCSS processing (optional)
* `npm` completely optional unless using PostCSS / Autoprefixer or Netlify functions
* `npm` completely optional unless using PostCSS / Autoprefixer

### Images

Expand Down
12 changes: 0 additions & 12 deletions assets/lambda/hello.js

This file was deleted.

12 changes: 0 additions & 12 deletions exampleNetlify/assets/lambda/hello.js

This file was deleted.

5 changes: 0 additions & 5 deletions exampleNetlify/layouts/index.headers

This file was deleted.

7 changes: 0 additions & 7 deletions exampleNetlify/layouts/index.redirects

This file was deleted.

4 changes: 1 addition & 3 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
[build]
# command = "hugo && npm run build:functions" # Enable if using Netlify functions
command = "hugo" # Disable if using the other command
command = "hugo"
publish = "public"
functions = "netlify/functions"

[build.environment]
HUGO_VERSION = "0.99.0"
Expand Down
Loading

0 comments on commit 0f1d222

Please sign in to comment.