Lurker News

Comments (239) 59 threads

Earlier comments
naveen991 reply#
If you can make a chat app, I am not sure you need to say static, it’s static + optionally dynamic.

Looks good.

1mbsite1 reply#
I refer to it as static hosting because even when using a 1MB database you’re querying it with JavaScript. Also databases are a new addition to 1MB so I’m at this weird crossroads where I don’t know if it’s static hosting anymore. Thank you!
triangleman#
You might consider hitching your wagon to the term "JAMStack"... I have been playing with Hugo and the experience is great.
indigodaddy1 reply#
Very cool default site page...! (Eg your page not found page or putting IP in browser)
1mbsite#
Thank you :)
faton1 reply#
How does it work in terms of security? If I make my sites' database writeable by authenticated users, doesn't in mean that any authenticated client can send a request to delete all records?
1mbsite#
The db-delete endpoint always requires your API key no matter if read or write permissions are enabled.
craftinator1 reply#
I tried to deploy a Hugo static site to 1mb, and while it rendered fine on localhost, it would display text only on 1mb. Is this feasible, and what could I be doing wrong?
1mbsite1 reply#
1MB doesn’t support directories at the time of writing.. did your Hugo site make use of directories? Or another thing I can think of is if you’re trying to make a single page site make a 200.html file (it’ll replace index.html and all requests to nonexistent files will go to 200.html)
craftinator#
Thank you for getting back to me! It is definitely caused by directories; I didn't see anything about that in the 1mb documentation (or skimmed and missed it), so I figured I just had settings wrong. Thank you!

Load more comments