fix: resolve API 404 by using correct /typedrequest endpoint

- Update ApiService baseUrl to include /typedrequest path that TypedServer expects
- Add noCache option to ViewServer to prevent client caching issues during development
- Update @api.global/typedserver to v8.3.0 which includes the noCache feature
This commit is contained in:
2026-01-23 23:18:20 +00:00
parent 74d24cf8b9
commit f64fc069d4
5 changed files with 10 additions and 9 deletions

View File

@@ -26,7 +26,7 @@
"dependencies": {
"@api.global/typedrequest": "^3.2.5",
"@api.global/typedrequest-interfaces": "^3.0.19",
"@api.global/typedserver": "^8.2.0",
"@api.global/typedserver": "^8.3.0",
"@design.estate/dees-catalog": "^3.37.0",
"@design.estate/dees-element": "^2.1.5",
"@push.rocks/early": "^4.0.4",

10
pnpm-lock.yaml generated
View File

@@ -15,8 +15,8 @@ importers:
specifier: ^3.0.19
version: 3.0.19
'@api.global/typedserver':
specifier: ^8.2.0
version: 8.2.0(@tiptap/pm@2.27.2)
specifier: ^8.3.0
version: 8.3.0(@tiptap/pm@2.27.2)
'@design.estate/dees-catalog':
specifier: ^3.37.0
version: 3.37.0(@tiptap/pm@2.27.2)
@@ -90,8 +90,8 @@ packages:
'@api.global/typedserver@3.0.80':
resolution: {integrity: sha512-dcp0oXsjBL+XdFg1wUUP08uJQid5bQ0Yv3V3Y3lnI2QCbat0FU+Tsb0TZRnZ4+P150Vj/ITBqJUgDzFsF34grA==}
'@api.global/typedserver@8.2.0':
resolution: {integrity: sha512-pA+TtuvrVn1596Y26c178jL0WhJ2VyZUmR5o/Ac63+ex0RpHQjZG8lMaeu1mIQVGpz1LppvtYBeOdrTFOCmkWQ==}
'@api.global/typedserver@8.3.0':
resolution: {integrity: sha512-Uh2sQkoQXbsKFb/fhSm7P9oCCEnawGY7R5/9VgCLQUuFV30G0FL0oBTKZNqFli0CNNDDs0nQHE+dpdf4VHhlXQ==}
'@api.global/typedsocket@3.1.1':
resolution: {integrity: sha512-Wkz3NlhmfdZMKqXXI2c2dMtGGmSmhdOegZiziL+9b2mqPYdc7Gd8AZRdEOKvbSoIvc9G22/5BEadIWHrfq66TA==}
@@ -4038,7 +4038,7 @@ snapshots:
- utf-8-validate
- vue
'@api.global/typedserver@8.2.0(@tiptap/pm@2.27.2)':
'@api.global/typedserver@8.3.0(@tiptap/pm@2.27.2)':
dependencies:
'@api.global/typedrequest': 3.2.5
'@api.global/typedrequest-interfaces': 3.0.19

File diff suppressed because one or more lines are too long

View File

@@ -38,6 +38,7 @@ export class ViewServer {
port: this.port,
bundledContent: bundledUiFiles,
spaFallback: true,
noCache: true,
});
// Add the router

View File

@@ -42,8 +42,8 @@ export class ApiService {
private baseUrl: string;
constructor() {
// Use current origin for API calls
this.baseUrl = window.location.origin;
// Use current origin for API calls - TypedServer expects /typedrequest endpoint
this.baseUrl = window.location.origin + '/typedrequest';
}
/**