Sveltekit: error during build: “Could not detect a supported production environment.”, works well in ‘dev’ and ‘preview’ mode’
I made an application with connection to MongoDB. I wanted to deploy it on Vercel. Got an error: “‘MONGO_KEY’ is not exported by $env/static/private, imported by src/hooks.server.js“. Then I tried to build it locally and got “Could not detect a supported production environment.”