question

MikeHarper-4782 avatar image
0 Votes"
MikeHarper-4782 asked SnehaAgrawal-MSFT commented

Azure static web apps sub directory

I have a vue/gridsome site deployed to azure static web apps and want to serve the site from /app instead of root. Is this possible? it builds a /app directory with all the static files but I always get 404 when navigating to /app - I've tried playing with routes.json. Thanks!

azure-static-web-apps
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Checking in to see if the above answer helped. If the above answer was helpful, kindly do ‘Accept as answer' and/or ‘Vote as helpful’ the post for benefitting the other users with a similar issue.

1 Vote 1 ·

Just checking if you have chance to see above response.

0 Votes 0 ·

1 Answer

SnehaAgrawal-MSFT avatar image
0 Votes"
SnehaAgrawal-MSFT answered

We apologize for the delay you encountered in hearing back from an engineer but we thank you for your patience.

Azure Static Web Apps is a new product in preview that we just started supporting on Microsoft Q&A a little bit ago. We have taken an action item to add this tag to our internal tooling so we can reply quicker to future issues.

Thanks for asking question! Just to confirm if you have configured the default fallback route. As you need to configure this so that the static web app’s client-side routes work properly and you don’t get a 404. For Vue, you have to add a routes.json file into your public folder.

You may want to refer this doc: Routing in Azure Static Web Apps

Also you may refer to this blog on Getting Started with Azure Static Web Apps might be helpful.

Please let us know if you have further question on this or issue persists. Looking forward to help you on this.

Disclaimer: This response contains a reference to a third-party World Wide Web site. Microsoft is providing this information as a convenience to you.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.