Skip to content

Astro CDN Site - Adding and Using Files

Learned how to upload and add a file to the CDN and use it within a blog post.

Today I learned how to upload and add a file to the CDN and use it within a blog post.

  1. Here is one image uploaded to the CDN:

Good image

1.1 - Second try using the <Figure> component:

Sample SRCNN path
Figure 1: One of the images used in the SRCNN training dataset (upscaled version). - Created with Excalidraw
  1. Here is a second image uploaded to the CDN - this is a Braintrust logo:

Logo image

Braintrust Logo
Braintrust logo served via the CDN. - Braintrust
  1. Here is one last image uploaded to the CDN:

Advertisement image

Advertisement created with Google's ad generation tool
Darmis.ai advertisement concept. - Internal experiment
  1. Here is a paper to download:

[Download the Qwen2.5-VL Technical Report](cdn://docs/Qwen2.5-VL Technical Report.pdf)

This link uses the exact key docs/Qwen2.5-VL Technical Report.pdf from the CDN manifest. remark-cdn will rewrite this to a hashed URL such as:

  • /immutable/uploads/docs/Qwen2.5-VL Technical Report.307793c113.pdf

and will optionally prefix it with the CDN origin if CDN_MANIFEST_URL points at a CDN host.

Test Section#

For quick regression testing of the rewriting:

Good image
Logo image
Advertisement image

![Download the Qwen2.5-VL Technical Report](cdn://docs/Qwen2.5-VL Technical Report.pdf) ![Download the Qwen2.5-VL Technical Report](cdn://docs/Qwen2.5-VL Technical Report.pdf)