You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-04 19:21:46 +00:00
Add local web server configuration designed for web editor development
Running `npm run serve` in `platform/javascript/` will start a web server that uses `bin/` as its root folder. This means you can extract a compiled web editor ZIP in this folder and immediately be able to test the web editor. Headers required for the use of SharedArrayBuffer are automatically added to every response.
This commit is contained in:
21
platform/javascript/serve.json
Normal file
21
platform/javascript/serve.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"public": "../../bin",
|
||||
"headers": [{
|
||||
"source": "**/*",
|
||||
"headers": [
|
||||
{
|
||||
"key": "Cross-Origin-Embedder-Policy",
|
||||
"value": "require-corp"
|
||||
}, {
|
||||
"key": "Cross-Origin-Opener-Policy",
|
||||
"value": "same-origin"
|
||||
}, {
|
||||
"key": "Access-Control-Allow-Origin",
|
||||
"value": "*"
|
||||
}, {
|
||||
"key": "Cache-Control",
|
||||
"value": "no-store, max-age=0"
|
||||
}
|
||||
]
|
||||
}]
|
||||
}
|
||||
Reference in New Issue
Block a user