I have deployed Vue app using Digital ocean spaces. I have enabled CDN and used a custom domain with an SSL certificate. Everything works expect I have to go to mydomain.com/index.html in order to access my app. If I purely go to just mydomain.com, it tries to list the files in my bucket/space.
I have tried to setup index.html as default using website.json file, but it does not work for CDN. It works with -static url though.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi there,
You’re right,
index.html
routing works on the static endpoint (likeyour-space.nyc3-static.digitaloceanspaces.com
), but not when accessed through the CDN or a custom domain via the CDN. That behavior isn’t fully supported yet.The DigitalOcean team has noted this as experimental, and they’re still evaluating how static site support via CDN could evolve. Here’s the related idea you can follow or upvote: https://ideas.digitalocean.com/storage/p/host-entire-static-site-from-spaces-like-s3github-pages
For now, if you want proper static site routing (including
index.html
defaults and 404 handling) with a custom domain and SSL, I’d recommend using App Platform, you get 3 static sites for free, and it handles all of that out of the box.If you want help with the setup or run into issues, support can also walk you through it: https://docs.digitalocean.com/support/
- Bobby