Replies: 10 comments
-
What's the issue you're encountering? It should be straightforward to build those projects and deploy them 👀 (azure static web apps should work fine IMO) PS: Ah, you might need to configure separate outDir in both of your projects. |
Beta Was this translation helpful? Give feedback.
-
Hi @brc-dd , thanks for taking interesting answering the problem, I posted a more detailed article at https://stackoverflow.com/questions/76050387/how-to-deploy-my-vitepress-to-azure-static-web-app-with-base-url Majorly the problem would be how to configure base url to static web app, I tried to set the outDir for the projects to be ex: http://companydomain/web/ui/ --> A project |
Beta Was this translation helpful? Give feedback.
-
Ah, I'll try to share an example. It's might be hard to explain this way. The basic approach is:
After you've build all three projects, you'll have a dist directory like this: dist/web/
├─ ui/
├─ sdk/
├─ doc/ You then will need to upload |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks for your answer. But if I upload the |
Beta Was this translation helpful? Give feedback.
-
You can emit a blank html file to dist or have some project with base |
Beta Was this translation helpful? Give feedback.
-
I see, is there a way for all three projects to be configuring at three different static web app then using the same domain to point to those web apps ? Seems these three projects are located at three different repo, so it seems impossible to do it in your structures. |
Beta Was this translation helpful? Give feedback.
-
I don't think that will be easy. Route rewrites could've been useful, but IG Azure needs them relative to your app root, which will be different for all three projects. If you put something like Cloudflare in front of Azure, then it might be possible to configure rewrites there and then use. Things like Azure NGINXaaS or Front Door might also work, but I haven't used them. I'd recommend asking a question on StackOverflow (Azure Collective) stating that you've three different apps, you want to serve them under the same domain but different sub directories. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer, acutally I found a different approach using |
Beta Was this translation helpful? Give feedback.
-
Azure blob might have slightly degraded performance, because they are not exactly meant for serving sites. IIRC blob was more like s3 than cloudfront. Azure CDN endpoints might give significantly better performance here. Anyway, there are a bunch of similar threads of StackOverflow, where people have recommended using Azure Application Gateway and Virtual Directories using which you can have multiple apps under the same domain. Some threads for reference: |
Beta Was this translation helpful? Give feedback.
-
If you want to host multiple Vitepress websites under one domain with specific base URLs like Here's a general outline of the steps you can follow:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Overview
We have multiple service we want to have documentation using vitepress, I know we can easily deploy the website using static web app, but it seems impossible to host those documentation site under one domain with base url ?
What I need is something like
Is that possible using azure static web app? If not, I am considering using azure app service, since it provide virtual application which may seems to fit in these kind of situation, but in this case, how do we host a website in azure web app with vitepress ? since it didn't have a nodjs server
Beta Was this translation helpful? Give feedback.
All reactions