@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.
- package/app/api/_dev/watch/route.js +1 -1
- package/next.config.mjs +4 -2
- package/package.json +1 -1
|
@@ -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(){
|
|
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
|
-
//
|
|
10
|
+
// Static export requires unoptimized images (no Next.js image server)
|
|
9
11
|
images: {
|
|
10
|
-
|
|
12
|
+
unoptimized: true,
|
|
11
13
|
},
|
|
12
14
|
};
|
|
13
15
|
|
package/package.json
CHANGED