Skip to content

Add Deno support to GitHub Pages template#8

Closed
jp-knj wants to merge 4 commits intowithastro:mainfrom
jp-knj:support-deno
Closed

Add Deno support to GitHub Pages template#8
jp-knj wants to merge 4 commits intowithastro:mainfrom
jp-knj:support-deno

Conversation

@jp-knj
Copy link
Copy Markdown
Member

@jp-knj jp-knj commented May 30, 2025

Add Deno support to GitHub Pages template

This pull request enhances the existing Astro GitHub Pages template by adding first-class support for building under Deno, in line with the upstream changes in [withastro/action#77](https://github.com/withastro/action/pull/77).

📝 What’s Changed

  1. Documentation
  • Added a “🔧 Enabling Deno Support” section with:
    • Add deno.json configuration
    • Explanation of the Deno task setup & build flow
    • Updated the project structure diagram to surface deno.json as an optional root file.
  1. Deno Configuration (deno.json)
  • Introduced a minimal example that:
    • Enables Deno’s Node-builtins compatibility
      • Defines a setup task (caching) and a build task (npm:astro build via Deno’s loader)
  1. GitHub Actions Workflow

🎯 Motivation

  • Leverage the new Deno support in withastro/action so that users who prefer Deno can build & deploy their Astro sites without installing Node.
  • Keep the Node-first flow fully supported and unchanged for existing users.

🔗 References


✅ Checklist

  • README updated with clear Deno instructions
  • Workflow file updated and tested on a sample Deno repo
  • Backward compatibility verified for Node-only projects

@delucis
Copy link
Copy Markdown
Member

delucis commented Jan 14, 2026

@jp-knj Are you still interested in this PR or should we close it?

@jp-knj
Copy link
Copy Markdown
Member Author

jp-knj commented Jan 15, 2026

I forgot. I'll close it now!

@jp-knj jp-knj closed this Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants