-
Hi, This might not be directly related to the library, however, given your experience perhaps you have a suggestion. I currently run my .net core app in the dev environment using IIS Express and also specify an extra folder with the same name as the application name. In other words, the app is accessed using: During development, when I include the jsx scripts and I use tilda: the request that gets sent to the vite server is: So, I ended up doing the following because in production the folder containing the js files is relative to the root of the app which is served through: <environment include="Development">
<script type="module" vite-src="/Account/Agreement/main.jsx" asp-append-version="true"></script>
</environment>
<environment include="production">
<script type="module" vite-src="~/Account/Agreement/main.jsx" asp-append-version="true"></script>
</environment> Is there any trick that you can think of that allows me to have only only one I looked through the vite docs and there seems to be no way to tell it to serve these resources from Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Ok, the solution is surprisingly simple. Use this setting: |
Beta Was this translation helpful? Give feedback.
Ok, the solution is surprisingly simple. Use this setting:
base: '/appName',
in the vite.config.ts file. See the base doc.