[Luigi Container] Context not received on Azure deploy #3596
Replies: 7 comments
-
Hi @BossHogg97 ,
|
Beta Was this translation helpful? Give feedback.
-
Hi. I'll try to answer all points.
I made a step ahead. The problem is also on dev environment (localhost) when i build the client app (via Vite) |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Inside vite.config.ts i set this parameters for treat luigi-container as custom component:
And the current version is the following Thanks |
Beta Was this translation helpful? Give feedback.
-
Hi @ndricimrr after several test i discovered that in develop mode the client is initialized correctly insted when i build the Client app and i run the preview the Client is not initialized. Following the code inside the main.ts of Core App
I also tried to manually init Luigi but nothing change.
I also added the I started with the code below from your repo
I don't know if the problem of no context in BUILDED mode depend by the Client not initialized. Thanks |
Beta Was this translation helpful? Give feedback.
-
Hi, i solved the problem of build mode of Client App (or on Azure environment). It's seems that Client app is too fast and try to use context data before it's available. I used a Timeout inside main.ts of Client app. And a watch function that detect the context update on Client. Following main.ts
Following the watch function inside startup component:
I'd like to thanks once again for you support @ndricimrr |
Beta Was this translation helpful? Give feedback.
-
Hi @BossHogg97 , |
Beta Was this translation helpful? Give feedback.
-
Hi, i'm working in container mode with Vue3 framework.
Inside client app i have the following code inside main.ts for receive context from Core App.
During local development all working fine but when i deploy my code on Azure it seems that contextUpdateListener is not able to receive the data from Core app. I also tried to use LuigiClient.getContext() method and i have the same situation. On local is working and on Azure the object is empty.
Following the code of Core App
I implemented the code like @ndricimrr told me in the discussion #3588
Any helps? Thanks
Beta Was this translation helpful? Give feedback.
All reactions