chore: fix client reference error

This commit is contained in:
2026-10-29 15:19:04 +01:00
parent 8cd6c654f7
commit 5884ad891a
4 changed files with 23 additions and 3 deletions
+1 -3
View File
@@ -26,6 +26,4 @@ coverage
*.sln
*.sw?
*.tsbuildinfo
proxy.js
*.tsbuildinfo
+10
View File
@@ -22,6 +22,16 @@ npm install
npm run dev
```
The development server forwards `/client` requests to `http://wg.local:10086/`.
The target is configured in the tracked [proxy.js](./proxy.js) module, which must
be present even when running tests or production builds.
### Run Unit Tests
```sh
npm test
```
### Compile and Minify for Production
```sh
+1
View File
@@ -0,0 +1 @@
export const proxy = "http://wg.local:10086/";
+11
View File
@@ -0,0 +1,11 @@
import { describe, expect, it } from "vitest";
import config from "./vite.config.js";
import { proxy } from "./proxy.js";
describe("Vite configuration", () => {
it("loads the client development proxy configuration", () => {
expect(proxy).toBe("http://wg.local:10086/");
expect(config.server.proxy["/client"]).toBe(proxy);
});
});