Skip to content

Commit

Permalink
fix: Added blockfrost-js, lucid-cardano & mongoose package to srvExtP…
Browse files Browse the repository at this point in the history
…ackages to prevent issue #49783 from happening. (#49938)

fixes #49783

### What?
Added the following packages to the server component exclusion list
which prevents these packages from going through the currently default
compile pipeline for apps that use the App Router. Packages added are:
"@blockfrost/blockfrost-js", "@jpg-store/lucid-cardano" and "mongoose".
(For instance, mongo was already in this exclusion list)

### Why?
These packages are required by the
"@emurgo/cardano-serialization-lib-nodejs" packages and break when not
added to this list while using the app router.

### How?
I've added these packages to the server-external-packages json file in
the Next.js package's lib directory.
  • Loading branch information
JesseKoldewijn committed May 23, 2023
1 parent eba9e39 commit 2fa58c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/next/src/lib/server-external-packages.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
[
"@blockfrost/blockfrost-js",
"@jpg-store/lucid-cardano",
"@prisma/client",
"@vercel/og",
"@sentry/nextjs",
Expand All @@ -19,6 +21,7 @@
"lodash",
"mdx-bundler",
"mongodb",
"mongoose",
"next-mdx-remote",
"next-seo",
"pg",
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2fa58c3

Please sign in to comment.