@ahmedrowaihi/8n-starter 2.2.7 → 2.2.9
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/next.config.mjs
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/** @type {import('next').NextConfig} */
|
|
2
2
|
const basePath = process.env.NEXT_BASE_PATH || "";
|
|
3
3
|
|
|
4
|
+
const isStaticExport = process.env.NEXT_STATIC_EXPORT === "true";
|
|
5
|
+
|
|
4
6
|
const config = {
|
|
5
7
|
reactStrictMode: true,
|
|
6
|
-
output: "export",
|
|
7
|
-
trailingSlash: true,
|
|
8
|
+
...(isStaticExport ? { output: "export", trailingSlash: true } : {}),
|
|
8
9
|
...(basePath ? { basePath, assetPrefix: basePath } : {}),
|
|
9
10
|
|
|
10
11
|
// Prevent heavy server-only packages from being bundled into client chunks
|
package/package.json
CHANGED
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"lucide-react": "^0.577.0",
|
|
74
74
|
"mermaid": "^11.13.0",
|
|
75
75
|
"motion": "^12.36.0",
|
|
76
|
-
"next": "^16.
|
|
76
|
+
"next": "^16.2.0",
|
|
77
77
|
"next-themes": "^0.4.6",
|
|
78
78
|
"react": "^19.2.4",
|
|
79
79
|
"react-day-picker": "^9.14.0",
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
"tsx": "^4.21.0",
|
|
114
114
|
"typescript": "^5.9.3"
|
|
115
115
|
},
|
|
116
|
-
"version": "2.2.
|
|
116
|
+
"version": "2.2.9"
|
|
117
117
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as o}from"react/jsx-runtime";import{Accordion as e,Accordions as t}from"@fumadocs/base-ui/components/accordion";import{Cards as s,Card as r}from"@fumadocs/base-ui/components/card";import{CodeBlock as
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{Accordion as e,Accordions as t}from"@fumadocs/base-ui/components/accordion";import{Cards as s,Card as r}from"@fumadocs/base-ui/components/card";import{CodeBlock as i,Pre as c}from"@fumadocs/base-ui/components/codeblock";import{DynamicCodeBlock as a}from"@fumadocs/base-ui/components/dynamic-codeblock";import{File as m,Files as n,Folder as p}from"@fumadocs/base-ui/components/files";import{ImageZoom as l}from"@fumadocs/base-ui/components/image-zoom";import{InlineTOC as u}from"@fumadocs/base-ui/components/inline-toc";import{Step as d,Steps as f}from"@fumadocs/base-ui/components/steps";import{Tab as b,Tabs as x}from"@fumadocs/base-ui/components/tabs";import{TypeTable as h}from"@fumadocs/base-ui/components/type-table";import*as y from"lucide-react";export function Card({icon:e,...t}){let s,i="string"==typeof e?(s=y[e],s?o(s,{className:"size-4"}):null):e;return o(r,{...t,icon:i})}let C={light:"catppuccin-latte",dark:"vesper"};export function DynamicCodeBlock({options:e,...t}){let s={...C,...e?.themes??{}};return o(a,{...t,options:{...e,themes:s}})}let T=e=>t=>o(e,{...t,dir:"ltr"});export const File=T(m);export const Files=T(n);export const Folder=T(p);export function TypeTable(e){return o("div",{dir:"ltr",className:"[&_.col-span-full]:[unicode-bidi:plaintext]! [&_.col-span-full]:text-start!",children:o(h,{...e})})}export function img({width:e,height:t,style:s,...r}){let i=e&&t;return o(l,{width:i?Number(e):1920,height:i?Number(t):1080,style:i?s:{width:"100%",height:"auto",...s},...r})}export{e as Accordion,t as Accordions,s as Cards,i as CodeBlock,c as Pre,u as InlineTOC,f as Steps,d as Step,x as Tabs,b as Tab};
|
package/src/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createEnv as e}from"@t3-oss/env-nextjs";import{z as
|
|
1
|
+
import{createEnv as e}from"@t3-oss/env-nextjs";import{z as _}from"zod";let s=_.string().default("[]").transform(e=>JSON.parse(e)),t=_.string().default("{}").transform(e=>JSON.parse(e));export const env=e({server:{SITE_URL:_.string().default("http://localhost:3000"),CONTENT_DIR:_.string().default("./content"),SECTIONS:t},client:{NEXT_PUBLIC_SITE_NAME:_.string().default("Docs"),NEXT_PUBLIC_GITHUB_REPO:_.string().optional(),NEXT_PUBLIC_NAV_LINKS:s,NEXT_PUBLIC_ANIMATIONS:_.enum(["true","false"]).default("true").transform(e=>"true"===e)},runtimeEnv:{SITE_URL:process.env.SITE_URL??(process.env.VERCEL_PROJECT_PRODUCTION_URL?`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`:process.env.VERCEL_URL?`https://${process.env.VERCEL_URL}`:void 0),CONTENT_DIR:process.env.CONTENT_DIR,SECTIONS:process.env.SECTIONS,NEXT_PUBLIC_SITE_NAME:process.env.NEXT_PUBLIC_SITE_NAME,NEXT_PUBLIC_GITHUB_REPO:process.env.NEXT_PUBLIC_GITHUB_REPO,NEXT_PUBLIC_NAV_LINKS:process.env.NEXT_PUBLIC_NAV_LINKS,NEXT_PUBLIC_ANIMATIONS:process.env.NEXT_PUBLIC_ANIMATIONS}});export function isSectionHidden(e,_){let s=env.SECTIONS[e];return!1===s||void 0!==s&&!1===s[_]}"development"===process.env.NODE_ENV&&env.NEXT_PUBLIC_GITHUB_REPO?.includes("your-org/your-repo")&&console.warn("[8n-starter] ⚠ NEXT_PUBLIC_GITHUB_REPO is still the placeholder value.\n Set github.repo in 8n.config.ts to enable Edit on GitHub links.");
|