"Page Not Found" after deleting the public folder in server mode

I deleted the public folder when the server was running and every page retuned a “page not found” message. (I deleted a page and I had to delete the public folder to clear it).

Why is this surprising to you?

I have never seen it happen before…I guess this is from v.0.123.0 and above?

Well, unless running you’re rendering to memory, you’re rendering to disk. And if you delete what’s on disk, you’ve deleted what you’ve rendered.

1 Like

I see! So, having the public folder created means it is in use in server mode?

Yes. That’s where hugo server renders when you render to disk.

I learnt something new today. I think I am still stuck with the idea of the old method of rendering to memory when it was the default.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.