Skip to content

Commit

Permalink
Get token from env. Changelog.
Browse files Browse the repository at this point in the history
  • Loading branch information
aarondfrancis committed Jun 17, 2021
1 parent f83a708 commit f2cd011
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Changelog

## Unreleased

## 0.1.1 - 2021-06-17

### Changed
- The `torchlight.php` config file now defaults to an environment variable for the token.

### Fixed
- Torchlight caused an error if there were no code blocks whatsoever.
5 changes: 3 additions & 2 deletions src/Commands/InstallTorchlight.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ protected function stub()
// https://torchlight.dev/themes, or you can provide your own.
'theme' => 'material-theme-palenight',
// Your API token from torchlight.dev.
'token' => '',
// Your API token from torchlight.dev. You can set it as an ENV variable
// (shown below), or just hardcode it if your repo is private.
'token' => getenv('TORCHLIGHT_API_TOKEN'),
// If you want to register the blade directives, set this to true.
'blade_components' => true,
Expand Down

0 comments on commit f2cd011

Please sign in to comment.