Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
c-ehrlich committed Nov 13, 2023
1 parent 0b5941a commit 1e19786
Show file tree
Hide file tree
Showing 10 changed files with 6,582 additions and 6,548 deletions.
9 changes: 9 additions & 0 deletions examples/logger/.prettierrc.mjs
@@ -0,0 +1,9 @@
/** @type {import("prettier").Config} */
const config = {
trailingComma: 'all',
tabWidth: 2,
semi: true,
singleQuote: true,
};

export default config;
10 changes: 5 additions & 5 deletions examples/logger/middleware.ts
@@ -1,9 +1,9 @@
import {NextFetchEvent, NextResponse} from 'next/server'
import {AxiomRequest, log, withAxiom} from 'next-axiom'
import { NextFetchEvent, NextResponse } from 'next/server';
import { AxiomRequest, log, withAxiom } from 'next-axiom';

async function middleware(req: AxiomRequest, ev: NextFetchEvent) {
req.log.info("Hello from middleware", { 'bar': 'baz' });
return NextResponse.next()
req.log.info('Hello from middleware', { bar: 'baz' });
return NextResponse.next();
}

export default withAxiom(middleware)
export default withAxiom(middleware);
4 changes: 2 additions & 2 deletions examples/logger/next.config.js
Expand Up @@ -5,6 +5,6 @@ const { withAxiom } = require('next-axiom');

const nextConfig = withAxiom({
reactStrictMode: true,
})
});

module.exports = nextConfig
module.exports = nextConfig;

0 comments on commit 1e19786

Please sign in to comment.