npub10y…337l2 on Nostr: #[0] Definitely the quickest and surest way to implement. Intercepting the requests ...
npub1ln5q8np5aezhtt7ztv6tah86xk4t3smjuchdvxp0u6uta056204q45xyw6 (npub1ln5…xyw6)
Definitely the quickest and surest way to implement. Intercepting the requests and letting the webserver respond without touching the app tickles me.
(I figured you weren't using Apache, which was what first sprang to mind, and the rewrite module people have to fight with if, say, their WordPress installation isn't bog-standard.)
However, implementing it as some node.js middleware would have the advantage that anyone cloning the repo would get that robots.txt support automatically.
Definitely the quickest and surest way to implement. Intercepting the requests and letting the webserver respond without touching the app tickles me.
(I figured you weren't using Apache, which was what first sprang to mind, and the rewrite module people have to fight with if, say, their WordPress installation isn't bog-standard.)
However, implementing it as some node.js middleware would have the advantage that anyone cloning the repo would get that robots.txt support automatically.