Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add unsafe flag for subql/node #629

Merged
merged 4 commits into from
Nov 17, 2021
Merged

add unsafe flag for subql/node #629

merged 4 commits into from
Nov 17, 2021

Conversation

lamcc21
Copy link
Contributor

@lamcc21 lamcc21 commented Nov 15, 2021

I have tested to make sure this flag works and with it you can for example make http requests. Although It was not so straight forward to make http requests in subql test project.

@lamcc21 lamcc21 changed the title add unsafe flag for subql/node by changing NodeVMOptions add unsafe flag for subql/node Nov 15, 2021
@jamesbayly
Copy link
Contributor

Can you also update the docs for this change?

packages/node/src/yargs.ts Outdated Show resolved Hide resolved
@lamcc21 lamcc21 marked this pull request as ready for review November 16, 2021 22:28
@@ -21,6 +21,13 @@ async function bootstrap() {
const indexerManager = app.get(IndexerManager);
await indexerManager.start();
await app.listen(port);

if (argv('unsafe')) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

move it before const app = await NestFactory.create

@ianhe8x ianhe8x merged commit d2bd6c7 into main Nov 17, 2021
@ianhe8x ianhe8x deleted the unsafe-flag-subql-node branch November 17, 2021 21:17
bz888 pushed a commit that referenced this pull request Jun 3, 2022
* add unsafe flag for subql/node, changed NodeVMOptions

* add warning, enable wasm in sandbox with unsafe flag

* change description of unsafe flag

* Update main.ts

Co-authored-by: Ian He <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants