Skip to content

Commit d4c1e01

Browse files
committed
chore: update dependencies, return early of no torchlight token was provided
1 parent 56bab0d commit d4c1e01

File tree

3 files changed

+416
-459
lines changed

3 files changed

+416
-459
lines changed

.eleventy.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ module.exports = (eleventyConfig, options) => {
1313
}
1414
}
1515

16+
if (!config.token) {
17+
console.error('Missing Torchlight token. Please set the TORCHLIGHT_TOKEN environment variable. Skipping highlighting.')
18+
return
19+
}
20+
1621
const cache = makeCache(config)
1722

1823
torchlight.init(config, cache)

0 commit comments

Comments
 (0)