lagossapp / lagoss

Deploy Serverless Functions at the Edge. Current status: Alpha
https://lagoss.com
GNU Affero General Public License v3.0
9 stars 1 forks source link

Support hosting static pages #22

Open anbraten opened 6 months ago

anbraten commented 6 months ago

Lagoss currently requires a function index file to be configured. Static projects wont have such a file by default and only contain static .html files and assets.

Possible options

anbraten commented 6 months ago

A script like this seems to allow basic static hosting:

export function handler(request: Request) {
    return new Response('', {
      status: 302,
      headers: {
        location: '/404.html',
      },
    });
}