Skip to content

Enable reliable Codespaces access link via forwarded Vite port and clear usage docs#7

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/add-access-link-to-codespace
Draft

Enable reliable Codespaces access link via forwarded Vite port and clear usage docs#7
Copilot wants to merge 3 commits intomainfrom
copilot/add-access-link-to-codespace

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 21, 2026

The issue was to make app access via a Codespace link straightforward and explicit. This PR adds a minimal Codespaces runtime config and documents exactly how to open/share the running app URL from the Ports panel.

  • Codespaces runtime config

    • Added .devcontainer/devcontainer.json to standardize startup and port behavior in Codespaces:
      • Node 22 devcontainer image
      • postCreateCommand with dependency install
      • Forwarded app port 3000 (Vite)
      • Port metadata for discoverability (label) and non-intrusive auto-forward behavior (notify)
  • Access-link documentation

    • Updated README.md with a dedicated GitHub Codespaces access section:
      • run npm run dev
      • open port 3000 via Ports → Open in Browser
      • clarify default private visibility and how to make the link public (Public) for unauthenticated sharing
  • Config snippet

    {
      "postCreateCommand": "npm install",
      "forwardPorts": [3000],
      "portsAttributes": {
        "3000": {
          "label": "Vite dev server",
          "onAutoForward": "notify"
        }
      }
    }
  • Screenshot
    UI preview in Codespaces context


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits March 21, 2026 06:51
Copilot AI changed the title [WIP] Add access link feature to Codespace Enable reliable Codespaces access link via forwarded Vite port and clear usage docs Mar 21, 2026
Copilot AI requested a review from avila2026 March 21, 2026 06:53
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