Description of the limitation and why it is relevant to address
As a developer, I want the development environment to mock or simulate having a project so that the behavior matches the deployed application.
I think this is relevant for the VIKTOR platform because differences between the deployed application and the development environment can lead to unexpected behaviors.
Example of the Problem
In the deployed application, I can access the following project information without issue:
However, when testing locally with viktor-cli start
, the same functionality does not work:
*Meaning there is no value but this is problematic if I access it
Submitter proposed design (optional)
Just some ideas:
- Return a mock project (entirely decided by VIKTOR, the developer does nothing)
- Provide an option in the
.toml
configuration file (or elsewhere) to specify mock project values that will be used in the development environment.
Current workarounds
Currently, I have adapted our own code to handle this. This can be done pretty easily/fast and we did not have any issues. I thought it worth mentioning nonetheless.