Notes are saved as markdown pages in a Nextcloud collective via the Collectives OCS API (page metadata/creation) and WebDAV (content read/append), following the same npm-workspaces + session-auth architecture as CityTracker. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NvmYFQSMqs2N3q2zUDNTVn
42 lines
1,010 B
TypeScript
42 lines
1,010 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import { VitePWA } from "vite-plugin-pwa";
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
VitePWA({
|
|
registerType: "autoUpdate",
|
|
includeAssets: ["icons/icon-192.png", "icons/icon-512.png"],
|
|
manifest: {
|
|
name: "Reading Notes",
|
|
short_name: "Notes",
|
|
description: "Jot down short notes while reading, saved straight to Nextcloud.",
|
|
start_url: "/",
|
|
display: "standalone",
|
|
background_color: "#ffffff",
|
|
theme_color: "#1f6feb",
|
|
icons: [
|
|
{
|
|
src: "icons/icon-192.png",
|
|
sizes: "192x192",
|
|
type: "image/png"
|
|
},
|
|
{
|
|
src: "icons/icon-512.png",
|
|
sizes: "512x512",
|
|
type: "image/png"
|
|
}
|
|
]
|
|
}
|
|
})
|
|
],
|
|
server: {
|
|
proxy: {
|
|
"/api": {
|
|
target: "http://localhost:3000",
|
|
changeOrigin: true
|
|
}
|
|
}
|
|
}
|
|
});
|