create-nextblock 0.15.4 → 0.15.5
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 +1 -1
- package/templates/nextblock-template/app/actions/feedback.ts +1 -1
- package/templates/nextblock-template/app/actions/package-actions.ts +2 -2
- package/templates/nextblock-template/app/api/cron/reset-sandbox/route.ts +2 -2
- package/templates/nextblock-template/app/api/cron/reset-sandbox/sandboxResetSql.ts +694 -637
- package/templates/nextblock-template/app/cms/settings/packages/activation-form.tsx +2 -2
- package/templates/nextblock-template/app/cms/settings/packages/package-card.tsx +3 -3
- package/templates/nextblock-template/components/SandboxCredentialsAlert.tsx +1 -1
- package/templates/nextblock-template/docs/TECHNICAL_SPECIFICATION.md +12508 -12508
- package/templates/nextblock-template/lib/setup/migrations-bundle.ts +9 -4
- package/templates/nextblock-template/package.json +1 -1
package/package.json
CHANGED
|
@@ -82,7 +82,7 @@ export async function submitFeedback(data: FeedbackData) {
|
|
|
82
82
|
`;
|
|
83
83
|
|
|
84
84
|
await sendEmail({
|
|
85
|
-
to: "feedback@nextblock.
|
|
85
|
+
to: "feedback@nextblock.dev",
|
|
86
86
|
// Newlines in a header would let a caller inject extra headers (Bcc, …).
|
|
87
87
|
subject: `[CMS Feedback] ${subject.replace(/[\r\n]+/g, ' ')}`,
|
|
88
88
|
text: textContent,
|
|
@@ -39,7 +39,7 @@ const getServiceRoleClient = () => {
|
|
|
39
39
|
|
|
40
40
|
export async function activatePackage(key: string) {
|
|
41
41
|
if (process.env.NEXT_PUBLIC_IS_SANDBOX === 'true') {
|
|
42
|
-
return { error: 'License activation is disabled in Sandbox mode. To purchase a real license, visit nextblock.
|
|
42
|
+
return { error: 'License activation is disabled in Sandbox mode. To purchase a real license, visit nextblock.dev' };
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
if (!key) {
|
|
@@ -98,7 +98,7 @@ export async function activatePackage(key: string) {
|
|
|
98
98
|
|
|
99
99
|
if (!data || !pkg) {
|
|
100
100
|
if (hasLicenseError && process.env.NEXT_PUBLIC_IS_SANDBOX !== 'true' && !specificErrorMsg) {
|
|
101
|
-
return { error: 'Sorry, this is a sandbox key. Please purchase the real key at nextblock.
|
|
101
|
+
return { error: 'Sorry, this is a sandbox key. Please purchase the real key at nextblock.dev' };
|
|
102
102
|
}
|
|
103
103
|
return { error: specificErrorMsg || 'Activation failed. Invalid key, wrong product, or limit reached.' };
|
|
104
104
|
}
|
|
@@ -2596,7 +2596,7 @@ async function seedFakeStoreData(sql: SqlClient, supabaseAdmin: any) {
|
|
|
2596
2596
|
console.log('[Sandbox Reset] Starting fake store data seeding...');
|
|
2597
2597
|
|
|
2598
2598
|
// 1. Ensure Demo User
|
|
2599
|
-
const email = 'demo@nextblock.
|
|
2599
|
+
const email = 'demo@nextblock.dev';
|
|
2600
2600
|
console.log(`[Sandbox Reset] Checking for demo user: ${email}`);
|
|
2601
2601
|
const { data: userData, error: userError } = await supabaseAdmin.auth.admin.listUsers();
|
|
2602
2602
|
if (userError) {
|
|
@@ -2629,7 +2629,7 @@ async function seedFakeStoreData(sql: SqlClient, supabaseAdmin: any) {
|
|
|
2629
2629
|
console.log('[Sandbox Reset] Seeding invoice branding...');
|
|
2630
2630
|
const branding = {
|
|
2631
2631
|
business_name: 'NextBlock CMS',
|
|
2632
|
-
email: 'billing@nextblock.
|
|
2632
|
+
email: 'billing@nextblock.dev',
|
|
2633
2633
|
phone: '5143188025',
|
|
2634
2634
|
address: {
|
|
2635
2635
|
line1: '',
|