Files
vikunja/frontend/embed.go
kolaente 568b367164 fix: embed frontend assets with names starting with _ or .
The Rolldown-based vite 8 emits plugin-vue's export helper as its own
chunk named _plugin-vue_export-helper-<hash>.js. go:embed excludes
files starting with _ or . unless the all: prefix is used, so the chunk
was missing from the binary and the static handler served index.html in
its place, breaking the frontend entirely.

Fixes #3093
2026-07-03 08:22:20 +00:00

26 lines
1.0 KiB
Go

// Vikunja is a to-do list application to facilitate your life.
// Copyright 2018-present Vikunja and contributors. All rights reserved.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
package frontend
import "embed"
// all: is required to include files starting with _ or ., such as the
// _plugin-vue_export-helper chunk emitted by Rolldown-based vite builds.
//
//go:embed all:dist
var Files embed.FS