I run cypress on remote like this `npx cypress run...
# cy10-feedback
n
I run cypress on remote like this
npx cypress run --browser chrome --env fileConfig=stage
then inside
cypress.config.js
inside
e2e
object
Copy code
setupNodeEvents(on, config) {
            const file = config.env.fileConfig;
            return getConfigurationByFile(file);
        }
and function outside of the
defineConfig
Copy code
const fs = require('fs-extra');
const path = require('path');

function getConfigurationByFile(file) {
    const pathToConfigFile = path.resolve('./cypress/', 'config', `${file}.json`)

    return fs.readJson(pathToConfigFile);
}
my actual config file live in
cypress/config/stage.json