mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
13 lines
278 B
JavaScript
13 lines
278 B
JavaScript
const { defineConfig } = require('cypress')
|
|
const process = require('process')
|
|
|
|
const getConfig = (key, defaultValue) => {
|
|
return process.env[key] || defaultValue
|
|
}
|
|
|
|
module.exports = defineConfig({
|
|
e2e: {
|
|
baseUrl: getConfig('BASE_URL', 'http://localhost:5173'),
|
|
},
|
|
})
|