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

Use node_modules provided http-server #1664

Merged
merged 2 commits into from
Aug 21, 2024
Merged

Conversation

isaacbrodsky
Copy link
Contributor

http-server is installed by yarn but the Makefile assumes it is provided on the path, this changes it to be explicit where to find http-server.

@carlopi carlopi merged commit a26aed2 into duckdb:main Aug 21, 2024
@carlopi
Copy link
Collaborator

carlopi commented Aug 21, 2024

Thanks!

@@ -370,11 +370,11 @@ serve_loadable_base: wasmpack shell docs

.PHONY: serve_local
serve_local: build_loadable_unsigned serve_loadable_base
http-server packages/duckdb-wasm-app/build/release -o "#queries=v0,SET-custom_extension_repository%3D'http%3A%2F%2F127.0.0.1%3A8080%2Fextension_repository'~" -a 127.0.0.1 -p 8080
node_modules/http-server/bin/http-server packages/duckdb-wasm-app/build/release -o "#queries=v0,SET-custom_extension_repository%3D'http%3A%2F%2F127.0.0.1%3A8080%2Fextension_repository'~" -a 127.0.0.1 -p 8080
Copy link
Collaborator

Choose a reason for hiding this comment

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

You could also just use npx which finds the dependency automatically.

@domoritz
Copy link
Collaborator

domoritz commented Aug 21, 2024

Ups, I never submitted my draft review. Npx would maybe be more robust.

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