how to configure the website on space with CDN
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,
In case that you want to configure your website so that it could use the DigitalOcean Spaces, you can use one of the following SDKs:
https://docs.digitalocean.com/products/spaces/resources/s3-sdk-examples/
Feel free to share more details regarding your website like what programing language and framework you are using and I will be happy to provide you with more resources and suggestions.
In case that you want to actually deploy a website on the DigitalOcean Spaces, this is not possible, but you can use the DigitalOcean App Platform instead for static websites:
https://www.digitalocean.com/community/tutorials/how-to-deploy-a-static-website-to-the-cloud-with-digitalocean-app-platform
Best,
Bobby
Hi there,
What you could do is to either use the Spaces CDN endpoint or add your own subdomain name as described here:
https://docs.digitalocean.com/products/spaces/how-to/customize-cdn-endpoint/
Once you have your custom CDN endpoint you could use it as normal in your project.
Feel free to share more details about your website and the tech stack that you are using and I will be happy to advise you further.
Best,
Bobby