Environment variables in admin panel (read only) - front (#10011)
Frontend for https://github.com/twentyhq/core-team-issues/issues/293 POC - https://github.com/twentyhq/twenty/pull/9903 --------- Co-authored-by: Félix Malfait <felix@twenty.com> Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
This commit is contained in:
@ -29,14 +29,9 @@ export class DataSeedDemoWorkspaceService {
|
||||
async seedDemo(): Promise<void> {
|
||||
try {
|
||||
await rawDataSource.initialize();
|
||||
const demoWorkspaceIds =
|
||||
this.environmentService.get('DEMO_WORKSPACE_IDS');
|
||||
|
||||
if (demoWorkspaceIds.length === 0) {
|
||||
throw new Error(
|
||||
'Could not get DEMO_WORKSPACE_IDS. Please specify in .env',
|
||||
);
|
||||
}
|
||||
// TODO: migrate demo seeds to dev seeds
|
||||
const demoWorkspaceIds = ['', ''];
|
||||
|
||||
await this.workspaceSchemaCache.flush();
|
||||
|
||||
|
||||
@ -21,6 +21,7 @@ export const seedUsers = async (
|
||||
'lastName',
|
||||
'email',
|
||||
'passwordHash',
|
||||
'canImpersonate',
|
||||
])
|
||||
.orIgnore()
|
||||
.values([
|
||||
@ -31,6 +32,7 @@ export const seedUsers = async (
|
||||
email: 'tim@apple.dev',
|
||||
passwordHash:
|
||||
'$2b$10$66d.6DuQExxnrfI9rMqOg.U1XIYpagr6Lv05uoWLYbYmtK0HDIvS6', // Applecar2025
|
||||
canImpersonate: true,
|
||||
},
|
||||
{
|
||||
id: DEV_SEED_USER_IDS.JONY,
|
||||
@ -39,6 +41,7 @@ export const seedUsers = async (
|
||||
email: 'jony.ive@apple.dev',
|
||||
passwordHash:
|
||||
'$2b$10$66d.6DuQExxnrfI9rMqOg.U1XIYpagr6Lv05uoWLYbYmtK0HDIvS6', // Applecar2025
|
||||
canImpersonate: true,
|
||||
},
|
||||
{
|
||||
id: DEV_SEED_USER_IDS.PHIL,
|
||||
@ -47,6 +50,7 @@ export const seedUsers = async (
|
||||
email: 'phil.schiler@apple.dev',
|
||||
passwordHash:
|
||||
'$2b$10$66d.6DuQExxnrfI9rMqOg.U1XIYpagr6Lv05uoWLYbYmtK0HDIvS6', // Applecar2025
|
||||
canImpersonate: true,
|
||||
},
|
||||
])
|
||||
.execute();
|
||||
|
||||
Reference in New Issue
Block a user