Skip to content

Commit

Permalink
Use @logtail/next for logging (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
samwisekind authored May 8, 2024
1 parent 4986f29 commit 0fbcb8a
Show file tree
Hide file tree
Showing 8 changed files with 69 additions and 715 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ The following environment variables should be provided when running the server (
| `NODE_SMTP_USERNAME` | SMTP username for sending emails. |
| `NODE_SMTP_PASSWORD` | SMTP password for sending emails. |
| `NODE_SIGHTING_EMAIL` | Email address to send sightings to. |
| `LOGTAIL_SOURCE_TOKEN` | Token for Better Stack Logs. |

## Development

Expand Down
4 changes: 3 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/** @type {import('next').NextConfig} */

const { withLogtail } = require('@logtail/next');

const redirects = require('./redirects.json');

const nextConfig = {
Expand Down Expand Up @@ -45,4 +47,4 @@ const nextConfig = {
},
};

module.exports = nextConfig;
module.exports = withLogtail(nextConfig);
Loading

0 comments on commit 0fbcb8a

Please sign in to comment.