How do I set an object in a 'set value'?

I want a custom product checkout with 1 product. I want to set it in a value in the server action, so I don’t need to put it in a database and query it (overkill).

However I can’t seem to save the value… it keeps resetting to blank:

Community Page
Last updated: