Search code examples
hugogitlab-pages

hugo serve content inside .well-known folder


Third party application which I'm trying to integrate, asking to put a file inside a .well-known folder. how can I make that file accessible from URL? (example.com/.well-known/token.txt). site is deployed as a gitlab page. every attempt I tried gives 404 error.


Solution

  • If you put your ".well-known" folder inside the "static" folder it should get deployed to the root of your website as you expect.