Add serve config & more instructions

This commit is contained in:
Ingvar Stepanyan
2021-08-09 12:44:48 +00:00
parent b0dcdb7775
commit 1001e71b48
2 changed files with 24 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
To build, you'll need Docker. Run `./build.sh` and it should do the rest.
To build, you'll need Docker. Then:
Then, start a local HTTP server and navigate to `http://localhost:port/ui/`.
```bash
./build.sh # runs build in Docker for libapi.{mjs,wasm,worker.js}
serve . # starts a local server with COOP/COEP
```
Then, navigate to http://localhost:5000/ui/ in Chrome.

17
serve.json Normal file
View File

@@ -0,0 +1,17 @@
{
"headers": [
{
"source": "**/*",
"headers": [
{
"key": "Cross-Origin-Embedder-Policy",
"value": "require-corp"
},
{
"key": "Cross-Origin-Opener-Policy",
"value": "same-origin"
}
]
}
]
}