chore(deps): bump devalue from 5.8.1 to 5.9.4 in /SharpbinV3.Client in the npm_and_yarn group across 1 directory
SharpbinV3 Client
This is the SvelteKit frontend for SharpbinV3.
Development Setup
Prerequisites
- Node.js 24
- npm
Installation
Install the project dependencies:
npm install
Environment Configuration
The frontend defaults to the backend at http://localhost:5050. SvelteKit loads .env files during development, but vite.config.ts reads shell environment variables directly for its proxy and allowed hosts:
VITE_API_URL: The backend URL reachable from the frontend server. Export this in the shell when changing the development backend URL so the Vite proxy and server-side requests use the same value.VITE_ALLOWED_HOSTS: A comma-separated list of hosts for Vite dev/preview. Export this in the shell before starting Vite. It does not configure the production Node server.
In development, the frontend uses a fixed internal view-recording key matching appsettings.Development.json. It ignores VIEW_INTERNAL_API_KEY and View_HMAC_Internal_API_Key while NODE_ENV=development.
Running in Development
Start the development server with Hot Module Replacement (HMR):
npm run dev
The frontend will be available at http://localhost:5173.
Running in Production
Docker Compose loads frontend.env and runs the built Node server on port 5173. Set these runtime variables:
VITE_API_URL: Backend URL. Compose setshttp://backend:8080directly, overridingfrontend.env.ORIGIN: Public frontend URL, such ashttps://example.comorhttp://localhost:5173for local Docker testing.VIEW_INTERNAL_API_KEY: Same generated value as the backend'sPasteSettings__View_Internal_API_Key. If unset, the frontend readsView_HMAC_Internal_API_Key; it does not read the backend setting name.
For a standalone Node deployment, .env is not loaded automatically. Build the frontend, then load your environment file explicitly:
npm run build
node --env-file=.env build
Set PORT=5173 in that file to use the same port as Docker; the Node adapter otherwise defaults to port 3000. See the Node adapter documentation for runtime configuration.
Script Reference
npm run dev: Start the Vite development server.npm run build: Create a production build of the frontend.npm run preview: Locally preview the production build.npm run check: Run type checking with svelte-check.npm run lint: Run ESLint and Prettier checks.npm run format: Format the codebase with Prettier.