@nextsparkjs/core 0.1.0-beta.81 → 0.1.0-beta.82

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "generated": "2026-01-28T21:10:24.462Z",
2
+ "generated": "2026-01-28T23:56:57.049Z",
3
3
  "totalClasses": 1039,
4
4
  "classes": [
5
5
  "!text-2xl",
@@ -211,7 +211,10 @@ const nextConfig = {
211
211
  headers: securityHeaders
212
212
  },
213
213
  // CORS headers for API routes
214
- {
214
+ // NOTE: In development, CORS is handled dynamically by API routes using addCorsHeaders()
215
+ // to support multiple origins (web app, mobile app, etc.)
216
+ // In production, we set static CORS headers here
217
+ ...(isProduction ? [{
215
218
  source: '/api/:path*',
216
219
  headers: [
217
220
  {
@@ -235,7 +238,7 @@ const nextConfig = {
235
238
  value: 'Set-Cookie'
236
239
  }
237
240
  ]
238
- }
241
+ }] : [])
239
242
  ]
240
243
  },
241
244
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextsparkjs/core",
3
- "version": "0.1.0-beta.81",
3
+ "version": "0.1.0-beta.82",
4
4
  "description": "NextSpark - The complete SaaS framework for Next.js",
5
5
  "license": "MIT",
6
6
  "author": "NextSpark <hello@nextspark.dev>",
@@ -410,8 +410,8 @@
410
410
  "tailwind-merge": "^3.3.1",
411
411
  "uuid": "^13.0.0",
412
412
  "zod": "^4.1.5",
413
- "@nextsparkjs/ui": "0.1.0-beta.81",
414
- "@nextsparkjs/testing": "0.1.0-beta.81"
413
+ "@nextsparkjs/testing": "0.1.0-beta.82",
414
+ "@nextsparkjs/ui": "0.1.0-beta.82"
415
415
  },
416
416
  "scripts": {
417
417
  "postinstall": "node scripts/postinstall.mjs || true",
@@ -211,7 +211,10 @@ const nextConfig = {
211
211
  headers: securityHeaders
212
212
  },
213
213
  // CORS headers for API routes
214
- {
214
+ // NOTE: In development, CORS is handled dynamically by API routes using addCorsHeaders()
215
+ // to support multiple origins (web app, mobile app, etc.)
216
+ // In production, we set static CORS headers here
217
+ ...(isProduction ? [{
215
218
  source: '/api/:path*',
216
219
  headers: [
217
220
  {
@@ -235,7 +238,7 @@ const nextConfig = {
235
238
  value: 'Set-Cookie'
236
239
  }
237
240
  ]
238
- }
241
+ }] : [])
239
242
  ]
240
243
  },
241
244
  }