---
title: "Static Files on Deno Deploy"
description: "Deno Deploy now stores static files alongside deployed code and distributes them to edge locations, where edge code reads them via Deno file system APIs (readFile, readDir, open, stat, etc.) or fetch."
url: "https://swe.quest/articles/static-files-on-deno-deploy-c3e4ce7a78a60f71"
canonical: "https://deno.com/blog/deploy-static-files"
source: "Deno"
published: "2022-02-10"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 6
tags: ["serverless","cdn-edge","deployment","javascript","ci-cd"]
---

# Static Files on Deno Deploy

A post on [Deno](https://swe.quest/sources/deno.md), published 2022-02-10, 6 min read, Announcement. Original: [https://deno.com/blog/deploy-static-files](https://deno.com/blog/deploy-static-files)

## Summary

Deno Deploy now stores static files alongside deployed code and distributes them to edge locations, where edge code reads them via Deno file system APIs (readFile, readDir, open, stat, etc.) or fetch. Because user code still controls responses, static assets can be auth-gated, given CORS headers, rewritten dynamically or streamed, and std's serveFile or oak handle Content-Type and Range requests. Files come from a linked GitHub repo automatically, or from build output uploaded with deployctl or a GitHub Action using OIDC without secrets. A Lume static site example deploys in about 25 seconds from push, 15 of which is runner startup; automatic mode deploys take 1-10s.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Serverless](https://swe.quest/tags/serverless.md) (Backend & APIs)
- [CDN & edge](https://swe.quest/tags/cdn-edge.md) (Infrastructure)
- [Deployment](https://swe.quest/tags/deployment.md) (Reliability & operations)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)
- [CI/CD](https://swe.quest/tags/ci-cd.md) (Reliability & operations)

## Prerequisites

- JavaScript/TypeScript basics ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- HTTP request/response handling

## Keywords

Deno Deploy, deployctl, GitHub Actions, oak, Lume, Deno

## Related posts

- [How to setup a blog with Hugo and Deno Deploy](https://swe.quest/articles/how-to-setup-a-blog-with-hugo-and-deno-deploy-7b19707c0d32a809.md): Deno · 2022-04-27 · Medium · 5 min read · CI/CD, Deployment, CDN & edge, JavaScript
  A Hugo static site can be published on Deno Deploy by building it in GitHub Actions and serving the generated public directory with Deno's standard-library file server, imported directly by URL with no download or compile step.
- [Build Your Own Cloud IDE with the Subhosting API](https://swe.quest/articles/build-your-own-cloud-ide-with-the-subhosting-api-182e8468c60d1771.md): Deno · 2024-01-16 · Medium · 10 min read · Serverless, TypeScript, Developer tools, API design
  A cloud IDE can be built on the Deno Subhosting API, which programmatically deploys user code to Deno Deploy's global V8 isolate cloud within seconds.
- [Which serverless edge platform has the fastest git deployments?](https://swe.quest/articles/which-serverless-edge-platform-has-the-fastest-git-deployments-69b26442e40d1aeb.md): Deno · 2022-10-20 · Medium · 9 min read · Serverless, Deployment, CI/CD, CDN & edge
  A push-to-live benchmark of git deployments across edge platforms, timed with a Deno script that pushes to main and polls the site until a marker string appears.
- [Manage your Deno Deploy and Deno Subhosting projects with Terraform](https://swe.quest/articles/manage-your-deno-deploy-and-deno-subhosting-projects-with-terraform-699764d70221ef58.md): Deno · 2023-12-05 · Medium · 6 min read · Infrastructure as code, Serverless, Deployment, TypeScript
  Deno now ships an official Terraform provider (denoland/deno) for managing Deno Deploy and Deno Subhosting projects, custom domains and deployments as infrastructure-as-code.
- [Run npm and Deno anywhere](https://swe.quest/articles/run-npm-and-deno-anywhere-02ce4590033c3918.md): Deno · 2022-11-18 · Medium · 7 min read · Deployment, Containers, Cloud platforms, JavaScript
  Deno apps, including those using npm specifiers, can be containerized with the official denoland/deno Docker image and deployed to any VPS or container platform, not just Deno Deploy.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
