Eptagone / Vite.AspNetCore

Small library to integrate Vite into ASP.NET projects
MIT License
264 stars 35 forks source link

Add Config Priority blurp to Readme #125

Closed MJLang closed 3 months ago

MJLang commented 3 months ago

I ran into this while debugging my setup, and accidentally mixed both Service & Environment Config. As those errors go, it took me way longer than I want to admit to find the issue. Hopefully this small hint saves somebody some time.

The underlying issue is that hard-coded configuration takes priority over config in the appsettings.json files. I.E. I configure Server.AutoRun etc in appsettings.json, and Manifest in the Program.cs, only the config from Program.cs will be loaded.