refactor: last20Messages und digitale Eingänge auf API-gesteuerte Mock-Dateien umgestellt
- Start.js (last20Messages) als JS-Mock in /apiMockData/jsMockFiles gespeichert - de.js (digitale Eingänge) in /apiMockData/SERVICE verlagert - Beide werden über eigene API-Endpoints bzw. per Script-Tag aus Development-Verzeichnis geladen - Kein Zugriff mehr über /public notwendig, Verhalten in DEV und PROD identisch
This commit is contained in:
@@ -13,7 +13,7 @@ export const fetchTDRReferenceCurve = async (
|
||||
// 🔁 Fallback: Datei oder Produktion-API
|
||||
const isDev = process.env.NEXT_PUBLIC_NODE_ENV === "development";
|
||||
const url = isDev
|
||||
? `/CPLmockData/tdr-reference-curves/slot${slot}.json`
|
||||
? `/apiMockData/tdr-reference-curves/slot${slot}.json`
|
||||
: `${window.location.origin}/CPL?Service/empty.acp&TDR=${slot}`;
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user