Skip to content

Add CNAME file at repository root for GitHub Pages custom domain configuration#1

Merged
lunalith merged 2 commits intomainfrom
copilot/add-cname-file-for-custom-domain
Sep 8, 2025
Merged

Add CNAME file at repository root for GitHub Pages custom domain configuration#1
lunalith merged 2 commits intomainfrom
copilot/add-cname-file-for-custom-domain

Conversation

Copy link
Contributor

Copilot AI commented Sep 8, 2025

This PR adds a CNAME file at the repository root to configure the custom domain sakurity.tech for GitHub Pages hosting.

Background

For GitHub Pages to properly serve a custom domain with HTTPS support, a CNAME file containing the exact domain name must exist at the root of the published branch. While the repository already had a CNAME file in website/static/ for the SvelteKit build process, GitHub Pages requires the file to be present at the repository root level.

Changes

  • Added: CNAME file at repository root
  • Content: sakurity.tech (exact domain, no protocol, no extra whitespace)
  • Purpose: Enables GitHub Pages custom domain configuration and HTTPS certificate issuance

Impact

Once this PR is merged:

  1. GitHub Pages will recognize sakurity.tech as the custom domain
  2. SSL certificate issuance can be enabled in repository Settings > Pages
  3. The site will be accessible at the custom domain with HTTPS support

This is a content-only change with no impact on the existing SvelteKit application or deployment process.

This pull request was created as a result of the following prompt from Copilot chat.

Add a new file named CNAME at the repository root to configure the GitHub Pages custom domain.

Context / Goal:
The site hosted from this repository (sakuraforge/sakura-forge-website) should serve at the custom domain sakurity.tech. For GitHub Pages to issue and enforce HTTPS for the custom domain, a CNAME file with the exact domain (no protocol, no trailing spaces) must exist at the root of the published branch (main).

Required Change:

  • Create a file: CNAME (no extension) in the repository root.
  • File content (single line, no newline padding needed beyond standard end-of-line):
    sakurity.tech

Acceptance Criteria:

  • Pull request adds the CNAME file at the root.
  • Content exactly matches "sakurity.tech" (case-insensitive but use lower-case) with no extra whitespace.
  • No other unrelated changes.

After Merge (informational, no automation required here):

  • Go to Settings > Pages and confirm the custom domain shows sakurity.tech.
  • Wait for certificate issuance, then enable "Enforce HTTPS".

No code build changes required. This is a content-only addition.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: lunalith <225983416+lunalith@users.noreply.github.com>
Copilot AI changed the title [WIP] Add CNAME file for custom domain sakurity.tech Add CNAME file at repository root for GitHub Pages custom domain configuration Sep 8, 2025
Copilot AI requested a review from lunalith September 8, 2025 19:24
@lunalith lunalith marked this pull request as ready for review September 8, 2025 19:25
@lunalith lunalith merged commit c0ca0cb into main Sep 8, 2025
4 checks passed
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