mirror of
https://github.com/narrrl/narl-workspace.git
synced 2026-11-04 00:47:01 +01:00
Single-user diary served as one Rust binary with the Svelte frontend embedded. - axum 0.8 + SQLite (sqlx), migrations run at startup - stateless HMAC session cookie; credentials from .env, compared in constant time - FTS5 full-text search, user input rewritten into quoted prefix terms - media uploads linked to entries by scanning bodies for /api/media/<id>, which scopes share-token media access and entry deletion - unguessable share links (192-bit token) serving a public read-only page - vim keybindings via CodeMirror plus a modal browse layer and : command line; disabled on touch devices
14 lines
331 B
TypeScript
14 lines
331 B
TypeScript
import { defineConfig } from 'vite'
|
|
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
|
|
|
export default defineConfig({
|
|
plugins: [svelte()],
|
|
build: { target: 'es2022', chunkSizeWarningLimit: 900 },
|
|
server: {
|
|
port: 4243,
|
|
proxy: {
|
|
'/api': { target: 'http://127.0.0.1:4242', changeOrigin: false },
|
|
},
|
|
},
|
|
})
|