|
3 | 3 | import { defineStack } from '@objectstack/spec'; |
4 | 4 | import { AppPlugin, DriverPlugin } from '@objectstack/runtime'; |
5 | 5 | import { ObjectQLPlugin } from '@objectstack/objectql'; |
6 | | -import { TursoDriver } from '@objectstack/driver-turso'; |
| 6 | +import { InMemoryDriver } from '@objectstack/driver-memory'; |
7 | 7 | import { AuthPlugin } from '@objectstack/plugin-auth'; |
8 | 8 | import CrmApp from '../app-crm/objectstack.config'; |
9 | 9 | import TodoApp from '../app-todo/objectstack.config'; |
@@ -35,11 +35,8 @@ export default defineStack({ |
35 | 35 | // The Runtime CLI will iterate this list and call kernel.use() |
36 | 36 | plugins: [ |
37 | 37 | new ObjectQLPlugin(), |
38 | | - // Register Default Driver (Turso — remote mode on Vercel, in-memory for local dev) |
39 | | - new DriverPlugin(new TursoDriver({ |
40 | | - url: process.env.TURSO_DATABASE_URL ?? ':memory:', |
41 | | - ...(process.env.TURSO_AUTH_TOKEN && { authToken: process.env.TURSO_AUTH_TOKEN }), |
42 | | - })), |
| 38 | + // Register Default Driver (Memory) |
| 39 | + new DriverPlugin(new InMemoryDriver()), |
43 | 40 | // Authentication — required for production (Vercel) deployments |
44 | 41 | authPlugin, |
45 | 42 | // Wrap Manifests/Stacks in AppPlugin adapter |
@@ -104,10 +101,7 @@ export const PreviewHostExample = defineStack({ |
104 | 101 | // Same plugins as the standard host |
105 | 102 | plugins: [ |
106 | 103 | new ObjectQLPlugin(), |
107 | | - new DriverPlugin(new TursoDriver({ |
108 | | - url: process.env.TURSO_DATABASE_URL ?? ':memory:', |
109 | | - ...(process.env.TURSO_AUTH_TOKEN && { authToken: process.env.TURSO_AUTH_TOKEN }), |
110 | | - })), |
| 104 | + new DriverPlugin(new InMemoryDriver()), |
111 | 105 | authPlugin, |
112 | 106 | new AppPlugin(CrmApp), |
113 | 107 | new AppPlugin(TodoApp), |
|
0 commit comments