I've created serve.json file at root of serving directory, but any of this configuration not applied when I run serve
{
"headers": [
{
"headers" : [{
"source" : "index.html",
"key" : "Access-Control-Allow-Origin",
"value" : "*"
}]
}],
"directoryListing": false,
"trailingSlash": true
}
@Olexiy665 What was the command you ran?
In order to use the config file, you need to place it in the current working directory (the one from which you ran the command).
However, if you run something like serve build, the configuration file needs to be placed inside the "build" directory, in order for it to work.
I know this is a closed issue, but I think this should be better documented somewhere. I couldn't find this information anywhere.
Most helpful comment
I know this is a closed issue, but I think this should be better documented somewhere. I couldn't find this information anywhere.