@jhits/plugin-content 0.0.9 → 0.0.10

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.
@@ -19,7 +19,7 @@ export async function POST(req, config) {
19
19
  if (!locale || !messages) {
20
20
  return NextResponse.json({ error: 'Missing locale or messages' }, { status: 400 });
21
21
  }
22
- const localesDir = config.localesDir || path.join(process.cwd(), 'data/locales');
22
+ const localesDir = config.localesDir || process.env.CONTENT_LOCALES_DIR || path.join(process.cwd(), 'data/locales');
23
23
  const currentLocaleDir = path.join(localesDir, locale);
24
24
  // Ensure locale directory exists
25
25
  await fs.mkdir(currentLocaleDir, { recursive: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jhits/plugin-content",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "Content management and localization plugin for the JHITS ecosystem",
5
5
  "publishConfig": {
6
6
  "access": "public"