@ahmedrowaihi/8n-starter 2.2.1 → 2.2.3

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.
@@ -1 +1 @@
1
- import{watch as e,existsSync as n}from"node:fs";import{env as t}from"@/config";export const dynamic="force-dynamic";export function GET(){return"development"!==process.env.NODE_ENV?new Response("Not found",{status:404}):new Response(new ReadableStream({start(o){if(o.enqueue("data: connected\n\n"),!n(t.CONTENT_DIR))return;let r=e(t.CONTENT_DIR,{recursive:!0},()=>{o.enqueue("data: change\n\n")});o.close=()=>r.close()}}),{headers:{"Content-Type":"text/event-stream","Cache-Control":"no-cache",Connection:"keep-alive"}})}
1
+ import{watch as e,existsSync as n}from"node:fs";import{env as t}from"@/config";export const dynamic="force-dynamic";export function GET(){let o;if("development"!==process.env.NODE_ENV)return new Response("Not found",{status:404});let c=new TextEncoder;return new Response(new ReadableStream({start(r){r.enqueue(c.encode("data: connected\n\n")),n(t.CONTENT_DIR)&&(o=e(t.CONTENT_DIR,{recursive:!0},()=>{try{r.enqueue(c.encode("data: change\n\n"))}catch{o?.close()}}))},cancel(){o?.close()}}),{headers:{"Content-Type":"text/event-stream","Cache-Control":"no-cache",Connection:"keep-alive"}})}
package/next.config.mjs CHANGED
@@ -1,13 +1,15 @@
1
1
  /** @type {import('next').NextConfig} */
2
2
  const config = {
3
3
  reactStrictMode: true,
4
+ output: "export",
5
+ trailingSlash: true,
4
6
 
5
7
  // Prevent heavy server-only packages from being bundled into client chunks
6
8
  serverExternalPackages: ["twoslash", "typescript", "gray-matter"],
7
9
 
8
- // Serve optimised AVIF/WebP variants for any next/image usage
10
+ // Static export requires unoptimized images (no Next.js image server)
9
11
  images: {
10
- formats: ["image/avif", "image/webp"],
12
+ unoptimized: true,
11
13
  },
12
14
  };
13
15
 
package/package.json CHANGED
@@ -113,5 +113,5 @@
113
113
  "tsx": "^4.21.0",
114
114
  "typescript": "^5.9.3"
115
115
  },
116
- "version": "2.2.1"
116
+ "version": "2.2.3"
117
117
  }