Closed Kixiron closed 3 years ago
Sorry for the delayed response!
You're totally right that this should be something devserver
can configure. Some new web APIs (like SharedArrayBuffer
) won't work unless the server properly configures headers.
The initial implementation should just be with a command line flag as it's most straightforward to implement.
A configuration file can be added later if it feels like it's needed.
Allow users to configure server headers, either with a command line option, a environmental variable option or a Devserver.toml type of configuration.
Devserver.toml
CLI
Env
Out of these (In my opinion at least) the config file option seems the best, as it allows further expansion of configuration in the future