Deploying template to Azure CDN within sub folder #202
Unanswered
robheymann
asked this question in
Q&A
Replies: 1 comment
-
Turns out this was related to ViteSSG, I had to specify base: '/profile' when adding creating the App using ViteSSG |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am hoping someone might be able to point me in the right direction here. I have deployed my project based off this template to azure blob storage, but within a sub folder. When visiting via a browser, the landing page works correctly but the sub routes are all reverting to the catch all page. I built the dist using the following: "cross-env NODE_ENV=production vite build --base=/profile/" ("profile" is folder with the dist files, located in the root).
I assume I need to do some url rewriting (to the index.html), and this is possible in azure CDN using rules, but for the life of me it doesn't want to work correctly. Image below shows the rules in azure CDN
Thanks in advance,
Rob
Beta Was this translation helpful? Give feedback.
All reactions