Skip to content

Commit

Permalink
Mark o1js as an external dependency for next JS server config (#693)
Browse files Browse the repository at this point in the history
  • Loading branch information
45930 authored Sep 4, 2024
1 parent a65d411 commit 5f56281
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
### Fixed

- Fixed zkProgramFile to support nested paths. [#690](https://github.com/o1-labs/zkapp-cli/pull/690)
- Fixed o1js dependency issue for next js server [#693](https://github.com/o1-labs/zkapp-cli/pull/693)

## [0.21.5](https://github.com/o1-labs/zkapp-cli/compare/0.21.4...0.21.5) - 2024-06-06

Expand Down
2 changes: 2 additions & 0 deletions src/lib/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,8 @@ const __dirname = path.dirname(__filename);
...config.resolve.alias,
o1js: path.resolve(__dirname, 'node_modules/o1js/dist/web/index.js'),
};
} else {
config.externals.push('o1js') // https://nextjs.org/docs/app/api-reference/next-config-js/serverExternalPackages
}
config.experiments = { ...config.experiments, topLevelAwait: true };
return config;
Expand Down

0 comments on commit 5f56281

Please sign in to comment.