import path from 'path'
import { fileURLToPath } from 'url'

const __dirname = path.dirname(fileURLToPath(import.meta.url))
const root = path.resolve(__dirname, '../../..')

export default {
    projectId: 'e2e-harness',

    source: {
        django: {
            managePath: path.join(root, 'examples/django-react-site/backend/manage.py'),
            command: [path.join(root, 'backends/mizan-django/.venv/bin/python')],
            env: {
                PYTHONPATH: `${path.join(root, 'backends/mizan-django/src')}:${path.join(root, 'examples/django-react-site/backend')}`,
                DJANGO_SETTINGS_MODULE: 'testapp.settings',
            },
        },
    },

    output: 'src/api',
}
