Skip to content

Commit

Permalink
Merge pull request #870 from MoralisWeb3/fix/demo-nextjs
Browse files Browse the repository at this point in the history
Fix: missing moralis api handler in demo added
  • Loading branch information
ErnoW authored Dec 5, 2022
2 parents ecff08e + fed5104 commit 28aa113
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions demos/nextjs/pages/api/moralis/[...moralis].ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { MoralisNextApi } from '@moralisweb3/next';

export default MoralisNextApi({
apiKey: process.env.MORALIS_API_KEY || '',
authentication: {
domain: 'amazing.dapp',
uri: process.env.NEXTAUTH_URL || '',
timeout: 120,
},
});

1 comment on commit 28aa113

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test coverage

Title Lines Statements Branches Functions
api-utils Coverage: 25%
26.34% (49/186) 19.14% (9/47) 22.85% (8/35)
auth Coverage: 90%
92.77% (77/83) 81.81% (18/22) 90% (18/20)
evm-api Coverage: 100%
100% (80/80) 66.66% (6/9) 100% (48/48)
common-evm-utils Coverage: 64%
64.99% (945/1454) 19.43% (123/633) 35.86% (203/566)
sol-api Coverage: 96%
96.66% (29/30) 66.66% (6/9) 91.66% (11/12)
common-sol-utils Coverage: 74%
73.77% (135/183) 60% (12/20) 65.67% (44/67)
common-streams-utils Coverage: 93%
93.13% (787/845) 85.96% (196/228) 84.14% (276/328)
streams Coverage: 87%
86.71% (398/459) 67.14% (47/70) 84.52% (71/84)

Please sign in to comment.