Compare commits

..

2 Commits

Author SHA1 Message Date
3dc377f9e6 Bump version to 0.0.8
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 13:39:31 -07:00
4b8ca04f25 Make TLS optional when certs don't exist
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 13:39:21 -07:00
2 changed files with 9 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{
"name": "baudy",
"version": "0.0.7",
"version": "0.0.8",
"module": "index.tsx",
"type": "module",
"bin": {

View File

@ -22,12 +22,16 @@ app.get('/ggwave.js', () =>
startup(PORT)
const hasCerts = await Bun.file('./certs/cert.pem').exists()
export default {
...app.defaults,
port: PORT,
idleTimeout: 255,
tls: {
key: Bun.file('./certs/key.pem'),
cert: Bun.file('./certs/cert.pem'),
},
...(hasCerts && {
tls: {
key: Bun.file('./certs/key.pem'),
cert: Bun.file('./certs/cert.pem'),
},
}),
}