feat: add first page with auth and containers list and agents
This commit is contained in:
47
web/vite.config.ts
Normal file
47
web/vite.config.ts
Normal file
@ -0,0 +1,47 @@
|
||||
import { sveltekit } from "@sveltejs/kit/vite";
|
||||
import { SvelteKitPWA } from "@vite-pwa/sveltekit";
|
||||
import { svelteTesting } from "@testing-library/svelte/vite";
|
||||
import { defineConfig } from "vite";
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
environment: "jsdom",
|
||||
globals: true,
|
||||
setupFiles: ["./src/tests/setup.ts"],
|
||||
include: ["src/**/*.{test,spec}.{js,ts}"],
|
||||
},
|
||||
plugins: [
|
||||
sveltekit(),
|
||||
svelteTesting(),
|
||||
SvelteKitPWA({
|
||||
registerType: "autoUpdate",
|
||||
manifest: {
|
||||
name: "Containarr",
|
||||
short_name: "Containarr",
|
||||
description: "Multi-VM Docker container manager",
|
||||
theme_color: "#0f172a",
|
||||
background_color: "#0f172a",
|
||||
display: "standalone",
|
||||
start_url: "/",
|
||||
icons: [
|
||||
{ src: "/icon-192.png", sizes: "192x192", type: "image/png" },
|
||||
{ src: "/icon-512.png", sizes: "512x512", type: "image/png" },
|
||||
],
|
||||
},
|
||||
workbox: {
|
||||
globPatterns: ["**/*.{js,css,html,svg,png,ico,woff2}"],
|
||||
},
|
||||
devOptions: {
|
||||
enabled: false,
|
||||
},
|
||||
}),
|
||||
],
|
||||
server: {
|
||||
proxy: {
|
||||
"/api": {
|
||||
target: "http://127.0.0.1:8080",
|
||||
ws: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user