Skip to content

Commit 9249dd0

Browse files
committed
Configurable html default Parquet URL
1 parent 1e68345 commit 9249dd0

4 files changed

Lines changed: 5 additions & 2 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
target
22
.vscode
3+
underpass-wasm/.env
34
underpass-wasm/dist
45
underpass-wasm/pkg
56
underpass-wasm/node_modules

underpass-wasm/.env.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VITE_PARQUET_URL=http://localhost:5173/data/landes-latest_nofilter_noclip_compact.parquet

underpass-wasm/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ yarn build
1616

1717
Folow data setup from [../src/duckdb_quackosm/README.md], but do not run the server.
1818

19+
Adjust `.env` file from `.env.template` to set the default Parquet file URL.
20+
1921
## Dev
2022

2123
Run the demo

underpass-wasm/index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ <h1>Underpass WASM</h1>
1818
<h2>Demo</h2>
1919
<form>
2020
<label for="parquet">QuackOSM Parquet file URL</label></br>
21-
<input type="text" id="parquet" name="parquet" size="60"
22-
value="http://localhost:5173/data/landes-latest_nofilter_noclip_compact.parquet" /><br>
21+
<input type="text" id="parquet" name="parquet" size="60" value="%VITE_PARQUET_URL%" /><br>
2322

2423
<label for="overpass-query">Overpass Query</label></br>
2524
<textarea id="overpass-query" rows="10" cols="60" placeholder="Enter your Overpass query here">

0 commit comments

Comments
 (0)