create-nextblock 0.8.4 → 0.8.6

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.
@@ -804,8 +804,6 @@ async function runSetupWizard(projectDir, projectName) {
804
804
  SUPABASE_ACCESS_TOKEN: supabase.accessToken,
805
805
  SUPABASE_DB_PASSWORD: dbPassword,
806
806
  POSTGRES_URL: postgresUrl,
807
- // Available for env() substitution in supabase config.toml during `config push`.
808
- NEXT_PUBLIC_URL: siteUrl,
809
807
  };
810
808
 
811
809
  const applySchema = await clack.confirm({
@@ -838,14 +836,7 @@ async function runSetupWizard(projectDir, projectName) {
838
836
  env: supabaseEnv,
839
837
  });
840
838
 
841
- clack.log.step('Syncing Supabase config (auth settings)...');
842
- await execa(command, sbArgs(['config', 'push']), {
843
- stdio: ['pipe', 'inherit', 'inherit'],
844
- cwd: projectPath,
845
- env: supabaseEnv,
846
- });
847
-
848
- clack.log.success('Database schema and config applied.');
839
+ clack.log.success('Database schema applied.');
849
840
  } else {
850
841
  clack.log.info(
851
842
  'Linked. Skipped schema push — run `npx supabase db push --include-all` when ready.',
@@ -860,10 +851,11 @@ async function runSetupWizard(projectDir, projectName) {
860
851
  }
861
852
  }
862
853
 
863
- // 7. Sync hosted Supabase Auth: custom SMTP + branded email templates. SMTP and the
864
- // access token are required, so this always runs (matching setup.mjs). This is what
865
- // lets Supabase email your first admin their confirmation link.
866
- await enableSupabaseSmtpConfig(projectPath);
854
+ // 7. Configure hosted Supabase Auth via the Management API: site URL + custom SMTP +
855
+ // branded email templates. This is the same mechanism as `npm run configure:supabase-auth`
856
+ // in the monorepo, and it's what lets Supabase email your first admin's confirmation link.
857
+ // (We deliberately do NOT `supabase config push` the whole config.toml — that pushes
858
+ // local-only/unset values like env(TARGET_URL) and isn't what the monorepo does.)
867
859
  await configureHostedSupabaseAuth(projectPath, {
868
860
  projectId,
869
861
  siteUrl,
@@ -906,48 +898,6 @@ async function runSetupWizard(projectDir, projectName) {
906
898
  );
907
899
  }
908
900
 
909
- async function enableSupabaseSmtpConfig(projectDir) {
910
- const configPath = resolve(projectDir, 'supabase', 'config.toml');
911
-
912
- if (!(await fs.pathExists(configPath))) {
913
- return;
914
- }
915
-
916
- const smtpBlock = `# [auth.email.smtp]
917
- # host = "env(SMTP_HOST)"
918
- # port = 587
919
- # user = "env(SMTP_USER)"
920
- # pass = "env(SMTP_PASS)"
921
- # admin_email = "env(SMTP_FROM_EMAIL)"
922
- # sender_name = "env(SMTP_FROM_NAME)"`;
923
-
924
- const enabledSmtpBlock = `[auth.email.smtp]
925
- host = "env(SMTP_HOST)"
926
- port = 587
927
- user = "env(SMTP_USER)"
928
- pass = "env(SMTP_PASS)"
929
- admin_email = "env(SMTP_FROM_EMAIL)"
930
- sender_name = "env(SMTP_FROM_NAME)"`;
931
-
932
- const configContents = await fs.readFile(configPath, 'utf8');
933
-
934
- if (configContents.includes(enabledSmtpBlock)) {
935
- return;
936
- }
937
-
938
- if (!configContents.includes(smtpBlock)) {
939
- throw new Error(
940
- `Could not find the SMTP placeholder block in ${configPath}.`,
941
- );
942
- }
943
-
944
- await fs.writeFile(
945
- configPath,
946
- configContents.replace(smtpBlock, enabledSmtpBlock),
947
- 'utf8',
948
- );
949
- }
950
-
951
901
  async function configureHostedSupabaseAuth(
952
902
  projectDir,
953
903
  { projectId, siteUrl, accessToken, smtpValues },
@@ -1984,7 +1934,9 @@ function buildNextConfigContent(editorUtilNames) {
1984
1934
  ' remotePatterns: getRemotePatterns(),',
1985
1935
  ' },',
1986
1936
  ' experimental: {',
1987
- ' optimizeCss: true,',
1937
+ // NOTE: optimizeCss is intentionally omitted — Next implements it via require("critters"),
1938
+ // which the generated project does not install (it ships beasties). Leaving it on caused
1939
+ // "Cannot find module 'critters'" at dev/build time.
1988
1940
  " cssChunking: 'strict',",
1989
1941
  ' },',
1990
1942
  " transpilePackages: ['@nextblock-cms/utils', '@nextblock-cms/ui', '@nextblock-cms/editor'],",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nextblock",
3
- "version": "0.8.4",
3
+ "version": "0.8.6",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextblock-cms/template",
3
- "version": "0.8.4",
3
+ "version": "0.8.6",
4
4
  "private": true,
5
5
  "scripts": {
6
6
  "dev": "next dev",
@@ -11,13 +11,16 @@
11
11
  "configure:supabase-auth": "node tools/configure-supabase-auth.js"
12
12
  },
13
13
  "dependencies": {
14
+ "@ai-sdk/openai-compatible": "^2.0.42",
14
15
  "@aws-sdk/client-s3": "^3.1039.0",
15
16
  "@aws-sdk/s3-request-presigner": "^3.1039.0",
16
17
  "@dnd-kit/core": "^6.3.1",
17
18
  "@dnd-kit/sortable": "^10.0.0",
18
19
  "@dnd-kit/utilities": "^3.2.2",
19
20
  "@hookform/resolvers": "^5.2.2",
21
+ "@next/third-parties": "^16.2.7",
20
22
  "@nextblock-cms/db": "workspace:*",
23
+ "@nextblock-cms/ecommerce": "npm:@nextblock-cms/ecom@latest",
21
24
  "@nextblock-cms/editor": "workspace:*",
22
25
  "@nextblock-cms/sdk": "workspace:*",
23
26
  "@nextblock-cms/ui": "workspace:*",
@@ -25,13 +28,18 @@
25
28
  "@radix-ui/react-tooltip": "^1.2.8",
26
29
  "@supabase/ssr": "^0.10.2",
27
30
  "@supabase/supabase-js": "^2.105.1",
31
+ "@tiptap/core": "^3.22.5",
28
32
  "@tiptap/react": "^3.22.5",
29
33
  "@vercel/analytics": "^1.6.1",
34
+ "@vercel/speed-insights": "^1.3.1",
35
+ "@vercel/toolbar": "^0.2.6",
36
+ "ai": "^6.0.170",
30
37
  "beasties": "^0.4.2",
31
38
  "clsx": "^2.1.1",
32
39
  "date-fns": "^4.1.0",
33
40
  "dotenv": "^17.4.2",
34
41
  "fast-json-patch": "^3.1.1",
42
+ "fflate": "^0.8.2",
35
43
  "html-react-parser": "^5.2.17",
36
44
  "js-cookie": "^3.0.5",
37
45
  "katex": "^0.16.45",
@@ -40,11 +48,14 @@
40
48
  "next": "16.2.7",
41
49
  "next-themes": "^0.4.6",
42
50
  "nodemailer": "^8.0.10",
51
+ "papaparse": "^5.5.3",
43
52
  "plaiceholder": "^3.0.0",
53
+ "postgres": "^3.4.9",
44
54
  "react": "^19.2.5",
45
55
  "react-dom": "^19.2.5",
46
56
  "react-hook-form": "^7.74.0",
47
57
  "react-hot-toast": "^2.6.0",
58
+ "server-only": "^0.0.1",
48
59
  "sharp": "^0.34.5",
49
60
  "sonner": "^2.0.7",
50
61
  "tailwind-merge": "^3.5.0",