@commonpub/layer 0.3.25 → 0.3.26
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.
- package/package.json +3 -3
- package/server/utils/email.ts +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commonpub/layer",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.26",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./nuxt.config.ts",
|
|
6
6
|
"files": [
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"zod": "^4.3.6",
|
|
47
47
|
"@commonpub/auth": "0.5.0",
|
|
48
48
|
"@commonpub/config": "0.7.1",
|
|
49
|
-
"@commonpub/editor": "0.5.0",
|
|
50
|
-
"@commonpub/docs": "0.5.2",
|
|
51
49
|
"@commonpub/protocol": "0.9.5",
|
|
50
|
+
"@commonpub/docs": "0.5.2",
|
|
52
51
|
"@commonpub/learning": "0.5.0",
|
|
52
|
+
"@commonpub/editor": "0.5.0",
|
|
53
53
|
"@commonpub/server": "2.15.0",
|
|
54
54
|
"@commonpub/ui": "0.7.1",
|
|
55
55
|
"@commonpub/schema": "0.8.12"
|
package/server/utils/email.ts
CHANGED
|
@@ -44,6 +44,9 @@ export function useEmailAdapter(): EmailAdapter {
|
|
|
44
44
|
return cachedAdapter;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
+
if (process.env.NODE_ENV === 'production') {
|
|
48
|
+
console.warn('[email] ⚠ Using console email adapter in production — emails will be logged, not sent. Set NUXT_EMAIL_ADAPTER to "smtp" or "resend".');
|
|
49
|
+
}
|
|
47
50
|
cachedAdapter = new ConsoleEmailAdapter();
|
|
48
51
|
return cachedAdapter;
|
|
49
52
|
}
|