web

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package web embeds the built frontend so cmd/sealift can serve it alongside the API, with no separate static asset directory to deploy.

Index

Constants

This section is empty.

Variables

View Source
var Dist embed.FS

Dist holds the frontend build: dist/app once `pnpm -C web run build` has run, and always dist/index.html, the placeholder committed there so a fresh clone still builds before that build ever runs. Vite writes to dist/app (see web/vite.config.ts's build.outDir), never touching the placeholder, so a local build leaves the working tree clean instead of dirtying a tracked file every time.

Functions

func Static

func Static() (fs.FS, error)

Static returns the frontend to serve: dist/app once it holds a real build, else dist itself, whose only file is the placeholder.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL