Skip to content

Commit 5f56281

Browse files
authored
Mark o1js as an external dependency for next JS server config (#693)
1 parent a65d411 commit 5f56281

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
2020
### Fixed
2121

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

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

src/lib/project.js

+2
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,8 @@ const __dirname = path.dirname(__filename);
362362
...config.resolve.alias,
363363
o1js: path.resolve(__dirname, 'node_modules/o1js/dist/web/index.js'),
364364
};
365+
} else {
366+
config.externals.push('o1js') // https://nextjs.org/docs/app/api-reference/next-config-js/serverExternalPackages
365367
}
366368
config.experiments = { ...config.experiments, topLevelAwait: true };
367369
return config;

0 commit comments

Comments
 (0)