@ahmedrowaihi/8n-starter 2.2.3 → 2.2.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/app/api/_dev/watch/route.js +1 -1
- package/app/robots.js +1 -1
- package/app/sitemap.js +1 -1
- package/next.config.mjs +4 -1
- 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-
|
|
1
|
+
import{watch as e,existsSync as n}from"node:fs";import{env as t}from"@/config";export const dynamic="force-static";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/app/robots.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{env as
|
|
1
|
+
import{env as t}from"@/config";export const dynamic="force-static";export default function e(){return{rules:{userAgent:"*",allow:"/"},sitemap:`${t.SITE_URL}/sitemap.xml`}}
|
package/app/sitemap.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{buildSitemap as default}from"@/lib/sitemap";
|
|
1
|
+
export const dynamic="force-static";export{buildSitemap as default}from"@/lib/sitemap";
|
package/next.config.mjs
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
/** @type {import('next').NextConfig} */
|
|
2
|
+
const basePath = process.env.NEXT_BASE_PATH || "";
|
|
3
|
+
|
|
2
4
|
const config = {
|
|
3
5
|
reactStrictMode: true,
|
|
4
6
|
output: "export",
|
|
5
7
|
trailingSlash: true,
|
|
8
|
+
...(basePath ? { basePath, assetPrefix: basePath } : {}),
|
|
6
9
|
|
|
7
10
|
// Prevent heavy server-only packages from being bundled into client chunks
|
|
8
11
|
serverExternalPackages: ["twoslash", "typescript", "gray-matter"],
|
|
9
12
|
|
|
10
|
-
// Static export requires unoptimized images
|
|
13
|
+
// Static export requires unoptimized images
|
|
11
14
|
images: {
|
|
12
15
|
unoptimized: true,
|
|
13
16
|
},
|
package/package.json
CHANGED