Add devcontainer configuration for Codespaces / Dev Containers#17
Merged
Conversation
Agent-Logs-Url: https://github.com/Ctrl-Alt-GG/care/sessions/458310ff-ce84-4971-aa4a-9dc153fc4eb6 Co-authored-by: tormachris <1529569+tormachris@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
tormachris
May 5, 2026 12:38
View session
tormachris
marked this pull request as ready for review
May 5, 2026 12:39
There was a problem hiding this comment.
Pull request overview
Adds a Dev Container configuration so contributors can open the Hugo + Tailwind repo in GitHub Codespaces / Dev Containers with the required toolchain preinstalled and a forwarded dev-server port.
Changes:
- Introduces
.devcontainer/devcontainer.jsonusing the JS/Node Bookworm base image plus Dev Container features for Node (LTS), Hugo (extended), and git. - Runs
npm cion container creation to ensure dependencies are installed immediately. - Forwards port
1313and preconfigures VS Code extensions/settings for Hugo/Tailwind/TOML/formatting.
Comment on lines
+14
to
+20
| "postCreateCommand": "npm ci", | ||
| "forwardPorts": [1313], | ||
| "portsAttributes": { | ||
| "1313": { | ||
| "label": "Hugo dev server", | ||
| "onAutoForward": "notify" | ||
| } |
Member
|
@copilot apply changes based on the comments in this thread |
Agent-Logs-Url: https://github.com/Ctrl-Alt-GG/care/sessions/39afd7c7-ed1d-43b0-aadf-87d22126265b Co-authored-by: tormachris <1529569+tormachris@users.noreply.github.com>
Contributor
Author
Updated |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://wonderful-grass-0cbc8d203-17.westeurope.4.azurestaticapps.net |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
.devcontainer/devcontainer.jsonso the repo can be opened in GitHub Codespaces or any Dev Containers-compatible tool with a working Hugo + Tailwind toolchain out of the box.Changes
mcr.microsoft.com/devcontainers/javascript-node:1-bookworm(version-agnostic; Node version is managed by the feature below).ghcr.io/devcontainers/features/node:1atlts, matching.nvmrc(lts/*) and satisfyingengines.node >=24inpackage.json.ghcr.io/devcontainers/features/hugo:1withextended: true, satisfyingmodule.hugoVersion.extended = trueandmin = 0.160.0fromhugo.toml.postCreateCommand: runsnpm ciso dependencies are ready immediately.1313is forwarded forhugo server(i.e.npm run dev).dev:hugoscript: updated to pass--bind 0.0.0.0so the forwarded dev-server port is reachable from the host when running inside a Codespace / Dev Container (Hugo otherwise binds to127.0.0.1by default). No-op for local installs.Usage
After the container builds, you can run:
The configuration intentionally does not pin tool versions in the devcontainer; it defers to the canonical sources (
.nvmrc,hugo.toml) per the project'sAGENTS.md.