Skip to content

Commit

Permalink
Merge pull request #201 from axiomhq/fix-examples-build-error
Browse files Browse the repository at this point in the history
Fix examples build error
  • Loading branch information
dasfmi authored Aug 6, 2024
2 parents 59decf1 + 3e72cb2 commit eb1f40d
Show file tree
Hide file tree
Showing 8 changed files with 266 additions and 266 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches:
- main
tags:
- "v*"
- 'v*'

jobs:
check-format:
Expand Down Expand Up @@ -37,20 +37,22 @@ jobs:
strategy:
matrix:
node:
- 17.x
- 18.x
- 19.x
- 20.x
- 22.x
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npm run build
# build examples
- run: cd examples/logger && npm install && npm run build
publish:
name: Publish
needs:
needs:
- check-format
- build
runs-on: ubuntu-latest
Expand All @@ -60,8 +62,8 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODEVERSION }}
cache: "npm"
registry-url: "https://registry.npmjs.org"
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm publish --access public
env:
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ To capture routing errors, use the [error handling mechanism of Next.js](https:/
```ts
"use client";

import NavTable from "@/components/NavTable";
import { LogLevel } from "@/next-axiom/logger";
import { useLogger } from "next-axiom";
import { usePathname } from "next/navigation";
Expand Down
4 changes: 1 addition & 3 deletions examples/logger/error.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
"use client";

import NavTable from "@/components/NavTable";
import { LogLevel } from "@/next-axiom/logger";
import { useLogger } from "next-axiom";
import { useLogger, LogLevel } from "next-axiom";
import { usePathname } from "next/navigation";

export default function ErrorPage({
Expand Down
213 changes: 114 additions & 99 deletions examples/logger/package-lock.json

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion examples/logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@
"prettier": "prettier --write ."
},
"dependencies": {
"next": "^14.1.1",
"next": "^14.0.0",
"next-axiom": "file:../..",
"react": "18.2.0",
"react-dom": "18.2.0"
},
"browser": {
"fs": false
},
"devDependencies": {
"@types/node": "^20.9.0",
"@types/react": "^18.2.37",
Expand Down
Loading

0 comments on commit eb1f40d

Please sign in to comment.