❔ Blazor server app, base url / base page to set environment
Hi 🙂
I have a Blazor Server app, where I would like to use some dynamic baseurl.
Say instead of mywebsite.com/users I would like it to be mywebsite.com/{Environment}/users so that I can see which environments users I am looking at.
Basically I would like to have that Environment path always filled, and if you hit the mywebsite.com directly I would the redirect it to mywebsite.com/production as an example.
How would I set that up? It seems like a weird thing to handle in the razor pages with something like @page /{Environment}/users on all my pages including having to handle the logic of switching/using the correct environment on all pages.
A
Accord•413d ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
52KMembers
View on DiscordWant results from more Discord servers?
More Posts❔ C# Console Application -its only writing the same random string, how can i make it do different ones?❔ Rapid prototypingDo you feel there is such a thing as rapid prototyping or mvp development where you do things differ❔ HotChocolate with IQueryable, apply a required filter on the ef entityBasically, I'm trying to find a way to configure an `IObjectFieldDescriptor` by adding a required ar❔ Dev/prod databseHello,
Me and a friend wants to create a webb-app project with a react frontend and C# backend.