You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now I added <environment> like following, and in order to test this scenario, I changed ASPNETCORE_ENVIRONMENT to PRODUCTION in my launchSettings.json.
My
_Layout
cshtml file (indotnet 5 MVC
app) looks something like following, and theNotyf
had been working smoothly so far.<script src="~/js/site.js" asp-append-version="true"></script>
<script src="~/js/controls.js" asp-append-version="true"></script>
@await Component.InvokeAsync("Notyf")
@await RenderSectionAsync("Scripts", required: false)
Now I added
<environment>
like following, and in order to test this scenario, I changedASPNETCORE_ENVIRONMENT
toPRODUCTION
in my launchSettings.json.<script src="~/js/site.js" asp-append-version="true"></script>
<script src="~/js/controls.js" asp-append-version="true"></script>
<environment names="Staging,Production">
<script src="~/js/somefile.js" asp-append-version="true"></script>
</environment>
@await Component.InvokeAsync("Notyf")
@await RenderSectionAsync("Scripts", required: false)
After this, the
Notyf
doesn't load properly, and I'm always getting following errors:Soon as I set
ASPNETCORE_ENVIRONMENT
toDEVELOPMENT
, all works fine as always.Is there something I'm doing wrong? Or is it some bug? Any help will be appreciated.
I posted more details at StackOverflow Here
The text was updated successfully, but these errors were encountered: