Add search and RAG workspace flows
This commit is contained in:
@@ -9,7 +9,7 @@ describe('buildLocalDevConfig', () => {
|
||||
expect(config.port).toBe('3000');
|
||||
expect(config.publicOrigin).toBe('http://localhost:3000');
|
||||
expect(config.env.BETTER_AUTH_BASE_URL).toBe('http://localhost:3000');
|
||||
expect(config.env.BETTER_AUTH_TRUSTED_ORIGINS).toBe('http://localhost:3000');
|
||||
expect(config.env.BETTER_AUTH_TRUSTED_ORIGINS).toBe('http://localhost:3000,http://127.0.0.1:3000');
|
||||
expect(config.env.BETTER_AUTH_SECRET).toBe(LOCAL_DEV_SECRET);
|
||||
expect(config.env.DATABASE_URL).toBe('file:data/fiscal.sqlite');
|
||||
expect(config.env.NEXT_PUBLIC_API_URL).toBe('');
|
||||
@@ -27,12 +27,23 @@ describe('buildLocalDevConfig', () => {
|
||||
});
|
||||
|
||||
expect(config.env.BETTER_AUTH_SECRET).toBe('real-secret');
|
||||
expect(config.env.BETTER_AUTH_TRUSTED_ORIGINS).toBe('http://localhost:3000,https://fiscal.b11studio.xyz');
|
||||
expect(config.env.BETTER_AUTH_TRUSTED_ORIGINS)
|
||||
.toBe('http://localhost:3000,http://127.0.0.1:3000,https://fiscal.b11studio.xyz');
|
||||
expect(config.env.DATABASE_URL).toBe('file:data/dev.sqlite');
|
||||
expect(config.overrides.databaseChanged).toBe(false);
|
||||
expect(config.overrides.workflowChanged).toBe(false);
|
||||
});
|
||||
|
||||
it('trusts both localhost and 127.0.0.1 for loopback public origins', () => {
|
||||
const config = buildLocalDevConfig({
|
||||
DEV_PUBLIC_HOST: '127.0.0.1',
|
||||
PORT: '3412'
|
||||
});
|
||||
|
||||
expect(config.publicOrigin).toBe('http://127.0.0.1:3412');
|
||||
expect(config.env.BETTER_AUTH_TRUSTED_ORIGINS).toBe('http://127.0.0.1:3412,http://localhost:3412');
|
||||
});
|
||||
|
||||
it('respects an explicit public origin override', () => {
|
||||
const config = buildLocalDevConfig({
|
||||
DEV_PUBLIC_ORIGIN: 'https://local.fiscal.test:4444/',
|
||||
|
||||
Reference in New Issue
Block a user