Export with different render methods

Godot Version

Godot 4.2

Question

Is it possible to export a game for different platforms using different rendering methods? So Compatibility for an HTML export and a Forward+ for the windows build.

I often make games for game jams, and making them work on the web makes it easier for other people to play, but it would be nice to be able to play around with some of the more advanced features. Is there a way to have different methods run depending on the rendering method?

Thanks for any answers!

You can always change those settings in the editor manually and export it, but if you find yourself doing that often you might want to look into automating it via command line.

Arguments to keep an eye out for would be --headless (unless you want to open editor as well when running the command line script), --rendering-method <renderer> and --export-release <preset> <path>.