asp.net core / vue3 spa index.html redirect 404 when pressing F5

32 views
Skip to first unread message

Frédéric Larivé

unread,
May 8, 2023, 4:08:05 AM5/8/23
to NodeChef
Hello,

I am deploying an asp.net core 7 + vue3 web app to my nodechef container.

asp.net core webAPI is working well by using dotnet core buildpack.

I have deploy the vue3 dist (static production build) on static hosting by using nodechef cli command :
nc deploy -i myapp --statics

My webapp works but i have a problem when i press F5 in browser, i have a 404.

I have tried to defined some routing in url pathname routing section.
I works but i can't use it because wildcards are not supported and i have too many possible routes (i also have some dynamic routes like page/[USERNAME])

How can i solve this problem ?
I can't create ticket from my dashboard because i only have access to forum support.

Here is my solution structure :

MyApp
   Site
       - vueapp
           - node_modules
           - public
           - src
           - ...
       - webapi
             - webapi.csproj
             - ...
   .deployment
   .buildpack.yml


Thanks for your help...

Eviral
flarive[@]hotmail.com

Frédéric Larivé

unread,
May 9, 2023, 2:04:59 AM5/9/23
to NodeChef
Oups, i missed the "New ticket" tab on nodechef dashboard :(
I have just created a new ticket for this :)
Reply all
Reply to author
Forward
0 new messages