Skip to content

.well-known/atproto-did returns 404 #397

@justinmk

Description

@justinmk

Problem:

Since migrating to hugo, https://neovim.io/.well-known/atproto-did returns 404 not found, even though:

  • it exists at ./static/.well-known/atproto-did
  • hugo build copies it to ./public/

Analysis

Potential fixes

  1. use a path that does not start with a dot
    • this would be preferrable, @echasnovski is this possible ?
  2. switch to peaceiris/actions-gh-pages
  3. do a manual tar step like below (AI generated, idk):
- name: Create and upload artifact with fixed tar paths
  run: |
    cd public
    tar --create --verbose --file=../pages-artifact.tar \
      --transform='s|^|./|' * .*/  # Key: --transform adds ./ prefix; * for files, .*/ for dotdirs
    cd ..
  shell: bash

- name: Upload fixed artifact
  uses: actions/upload-pages-artifact@v3
  with:
    path: pages-artifact.tar  # Upload the custom tar directly

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions