@adaptic/backend-legacy 0.0.900 → 0.0.902

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/server.cjs +12 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptic/backend-legacy",
3
- "version": "0.0.900",
3
+ "version": "0.0.902",
4
4
  "description": "Backend executable CRUD functions with dynamic variables construction, and type definitions for the Adaptic AI platform.",
5
5
  "type": "module",
6
6
  "types": "index.d.ts",
@@ -44,7 +44,7 @@
44
44
  }
45
45
  },
46
46
  "dependencies": {
47
- "@prisma/client": "^5.17.0",
47
+ "@prisma/client": "^6.19.0",
48
48
  "reflect-metadata": "^0.2.2",
49
49
  "cross-fetch": "^4.0.0"
50
50
  },
package/server.cjs CHANGED
@@ -136,8 +136,18 @@ const startServer = async () => {
136
136
  // Health check endpoint - mounted before Apollo middleware so it's not behind GraphQL or auth
137
137
  app.use((0, health_1.createHealthRouter)());
138
138
  // Configure CORS with allowed origins
139
- const defaultOrigins = ['http://localhost:3000', 'http://localhost:3001', 'http://localhost:4000', 'https://adaptic.ai', 'https://api.adaptic.ai'];
140
- const envOrigins = process.env.ALLOWED_ORIGINS ? process.env.ALLOWED_ORIGINS.split(',').map(o => o.trim()) : [];
139
+ const defaultOrigins = [
140
+ 'http://localhost:3000',
141
+ 'http://localhost:3001',
142
+ 'http://localhost:4000',
143
+ 'https://adaptic.ai',
144
+ 'https://api.adaptic.ai',
145
+ 'https://os.adaptic.ai',
146
+ 'https://stable.adaptic.ai',
147
+ ];
148
+ const envOrigins = process.env.ALLOWED_ORIGINS
149
+ ? process.env.ALLOWED_ORIGINS.split(',').map((o) => o.trim())
150
+ : [];
141
151
  const allowedOrigins = [...new Set([...defaultOrigins, ...envOrigins])];
142
152
  const corsOptions = {
143
153
  origin: (origin, callback) => {