-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathobjectstack.config.ts
More file actions
50 lines (49 loc) · 1.65 KB
/
objectstack.config.ts
File metadata and controls
50 lines (49 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**
* Root Development Configuration
*
* Aggregates all example apps for `pnpm studio` / `pnpm dev`.
* This is NOT a deployable config — it's the monorepo dev entry point.
*/
import { defineStack } from '@objectstack/spec';
import { AppPlugin, DriverPlugin } from '@objectstack/runtime';
import { ObjectQLPlugin } from '@objectstack/objectql';
import { InMemoryDriver } from '@objectstack/driver-memory';
import CrmApp from './examples/app-crm/objectstack.config';
import TodoApp from './examples/app-todo/objectstack.config';
import BiPlugin from './examples/plugin-bi/objectstack.config';
import { AuthPlugin } from '@objectstack/plugin-auth';
export default defineStack({
manifest: {
id: 'dev-workspace',
name: 'dev_workspace',
version: '0.0.0',
description: 'ObjectStack monorepo development workspace',
type: 'app',
},
plugins: [
new ObjectQLPlugin(),
new DriverPlugin(new InMemoryDriver()),
new AuthPlugin({
secret: 'dev-secret-please-change-in-production-min-32-chars',
baseUrl: 'http://localhost:3000',
// Optional: Enable OAuth providers
// providers: [
// {
// id: 'google',
// clientId: process.env.GOOGLE_CLIENT_ID!,
// clientSecret: process.env.GOOGLE_CLIENT_SECRET!,
// }
// ],
// Optional: Enable advanced features
// plugins: {
// organization: true, // Multi-tenant support
// twoFactor: true, // 2FA
// passkeys: true, // WebAuthn/Passkeys
// magicLink: true, // Passwordless auth
// }
}),
new AppPlugin(CrmApp),
new AppPlugin(TodoApp),
new AppPlugin(BiPlugin),
],
});