I need to comment out some lines from the firebase.json
file:
Example:
"rewrites": [
// {
// "source": "/blog/*",
// "function": "handleBlog"
// },
{
"source": "**",
"destination": "/index.html"
}
]
In this case, I want to disable that rewrite
temporarily but I do not want to delete the code.
The fact is that JSON files do not allow comments and I get an error from VSCode telling me that.
But if I set the Language Mode to JSON with Comments
, the errors from VSCode are gone.
But is it safe to do? How does Firebase handle a firebase.json
file with comments?