Add serve config & more instructions
This commit is contained in:
@@ -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
17
serve.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"headers": [
|
||||
{
|
||||
"source": "**/*",
|
||||
"headers": [
|
||||
{
|
||||
"key": "Cross-Origin-Embedder-Policy",
|
||||
"value": "require-corp"
|
||||
},
|
||||
{
|
||||
"key": "Cross-Origin-Opener-Policy",
|
||||
"value": "same-origin"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user