@skspwork/config-doc 0.4.1 → 0.4.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/package.json +2 -2
- package/packages/web/.next/standalone/packages/web/.next/required-server-files.json +1 -1
- package/packages/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__8b7651c1._.js +1 -1
- package/packages/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__8c565558._.js +1 -1
- package/packages/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__9ecfb8b3._.js +1 -1
- package/packages/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__a5322c08._.js +1 -1
- package/packages/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__a67d7570._.js +1 -1
- package/packages/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__fdcdeed1._.js +1 -1
- package/packages/web/.next/standalone/packages/web/.next/server/chunks/b182f_next_dist_esm_build_templates_app-route_915c0243.js +51 -18
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skspwork/config-doc",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "Interactive documentation tool for JSON configuration files (appsettings.json)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"config",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "cd packages/web && npm install && npm run build && cd ../.. && node scripts/prepare-standalone.js",
|
|
45
45
|
"prepublishOnly": "npm run build",
|
|
46
|
-
"test:local": "npm pack && npm install -g skspwork-config-doc-0.4.
|
|
46
|
+
"test:local": "npm pack && npm install -g skspwork-config-doc-0.4.3.tgz",
|
|
47
47
|
"unlink": "npm unlink -g @skspwork/config-doc"
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[24868,(e,t,a)=>{t.exports=e.x("fs/promises",()=>require("fs/promises"))},66823,e=>{"use strict";var t=e.i(14747);function a(){return process.env.USER_WORKING_DIR?process.env.USER_WORKING_DIR:t.default.join(process.cwd(),"..","..")}e.s(["getRootPath",()=>a])},93695,(e,t,a)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},32319,(e,t,a)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,a)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},18622,(e,t,a)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,a)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},70406,(e,t,a)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},14747,(e,t,a)=>{t.exports=e.x("path",()=>require("path"))},79615,e=>{"use strict";var t=e.i(24868),a=e.i(14747);
|
|
1
|
+
module.exports=[24868,(e,t,a)=>{t.exports=e.x("fs/promises",()=>require("fs/promises"))},66823,e=>{"use strict";var t=e.i(14747);function a(){return process.env.USER_WORKING_DIR?process.env.USER_WORKING_DIR:t.default.join(process.cwd(),"..","..")}e.s(["getRootPath",()=>a])},93695,(e,t,a)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},32319,(e,t,a)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,a)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},18622,(e,t,a)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,a)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},70406,(e,t,a)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},14747,(e,t,a)=>{t.exports=e.x("path",()=>require("path"))},79615,90088,e=>{"use strict";var t=e.i(24868),a=e.i(14747);function i(e){return JSON.parse(65279===e.charCodeAt(0)?e.slice(1):e)}e.s(["parseJSON",()=>i],90088);class r{configDocDir=".config_doc";rootPath;constructor(e){this.rootPath=e}async ensureConfigDocDir(){let e=a.default.join(this.rootPath,this.configDocDir),i=a.default.join(e,"metadata"),r=a.default.join(i,"docs");try{await t.default.access(e)}catch{await t.default.mkdir(e,{recursive:!0})}await t.default.mkdir(r,{recursive:!0})}async loadProjectSettings(){let e=a.default.join(this.rootPath,this.configDocDir,"project_settings.json");try{let a=await t.default.readFile(e,"utf-8");return i(a)}catch{return null}}async saveProjectSettings(e){await this.ensureConfigDocDir();let i=a.default.join(this.rootPath,this.configDocDir,"project_settings.json");await t.default.writeFile(i,JSON.stringify(e,null,2),"utf-8")}async loadConfigFiles(){let e=a.default.join(this.rootPath,this.configDocDir,"metadata","config_files.json");try{let a=await t.default.readFile(e,"utf-8");return i(a)}catch{return null}}async saveConfigFiles(e){await this.ensureConfigDocDir();let i=a.default.join(this.rootPath,this.configDocDir,"metadata","config_files.json");await t.default.writeFile(i,JSON.stringify(e,null,2),"utf-8")}async loadConfigFile(e){let r=a.default.isAbsolute(e)?a.default.normalize(e):a.default.join(this.rootPath,e);return i(await t.default.readFile(r,"utf-8"))}async loadConfigDocs(e){let r=a.default.join(this.rootPath,this.configDocDir,"metadata","docs",e);try{let e=await t.default.readFile(r,"utf-8");return i(e)}catch{return null}}async saveConfigDocs(e,i){await this.ensureConfigDocDir();let r=a.default.join(this.rootPath,this.configDocDir,"metadata","docs",e),s=a.default.dirname(r);await t.default.mkdir(s,{recursive:!0}),await t.default.writeFile(r,JSON.stringify(i,null,2),"utf-8")}async browseDirectory(e){let i=a.default.isAbsolute(e)?a.default.normalize(e):a.default.join(this.rootPath,e);return(await t.default.readdir(i,{withFileTypes:!0})).filter(e=>!e.name.startsWith(".")).map(e=>{let t=a.default.join(i,e.name);return{name:e.name,path:t,type:e.isDirectory()?"directory":"file",extension:e.isFile()?a.default.extname(e.name):void 0}}).sort((e,t)=>e.type!==t.type?"directory"===e.type?-1:1:e.name.localeCompare(t.name))}async deleteConfigDocs(e){let i=a.default.join(this.rootPath,this.configDocDir,"metadata","docs",e);try{await t.default.unlink(i)}catch{console.log(`Docs file not found: ${e}`)}}}e.s(["FileSystemService",()=>r],79615)},51958,e=>{"use strict";var t=e.i(14747);class a{fs;constructor(e){this.fs=e}async savePropertyDoc(e,t,a){let i=this.getDocsFileName(e),r=this.toRelativePath(e),s=await this.fs.loadConfigDocs(i);s||(s={configFilePath:r,lastModified:new Date().toISOString(),properties:{}}),s.properties[t]=a,s.lastModified=new Date().toISOString(),s.configFilePath=r,await this.fs.saveConfigDocs(i,s)}async loadAllDocs(e){let t=this.getDocsFileName(e),a=await this.fs.loadConfigDocs(t),i=this.toRelativePath(e);return a||{configFilePath:i,lastModified:new Date().toISOString(),properties:{}}}getDocsFileName(e){let t=this.toRelativePath(e),a=t.split(/[/\\]/).filter(e=>e&&"."!==e);return a.length<=1?(a[0]||"config.json").replace(".json",".docs.json"):t.replace(/\.\./g,"__").replace(/[/\\]/g,"_").replace(/:/g,"").replace(".json",".docs.json")}toRelativePath(e){return t.default.isAbsolute(e)?t.default.relative(this.fs.rootPath,e):e}}e.s(["StorageService",()=>a])}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=%5Broot-of-the-server%5D__8b7651c1._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[24868,(e,t,a)=>{t.exports=e.x("fs/promises",()=>require("fs/promises"))},66823,e=>{"use strict";var t=e.i(14747);function a(){return process.env.USER_WORKING_DIR?process.env.USER_WORKING_DIR:t.default.join(process.cwd(),"..","..")}e.s(["getRootPath",()=>a])},93695,(e,t,a)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},32319,(e,t,a)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,a)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},18622,(e,t,a)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,a)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},70406,(e,t,a)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},14747,(e,t,a)=>{t.exports=e.x("path",()=>require("path"))},79615,e=>{"use strict";var t=e.i(24868),a=e.i(14747);class r{configDocDir=".config_doc";rootPath;constructor(e){this.rootPath=e}async ensureConfigDocDir(){let e=a.default.join(this.rootPath,this.configDocDir),r=a.default.join(e,"metadata"),i=a.default.join(r,"docs");try{await t.default.access(e)}catch{await t.default.mkdir(e,{recursive:!0})}await t.default.mkdir(i,{recursive:!0})}async loadProjectSettings(){let e=a.default.join(this.rootPath,this.configDocDir,"project_settings.json");try{let a=await t.default.readFile(e,"utf-8");return JSON.parse(a)}catch{return null}}async saveProjectSettings(e){await this.ensureConfigDocDir();let r=a.default.join(this.rootPath,this.configDocDir,"project_settings.json");await t.default.writeFile(r,JSON.stringify(e,null,2),"utf-8")}async loadConfigFiles(){let e=a.default.join(this.rootPath,this.configDocDir,"metadata","config_files.json");try{let a=await t.default.readFile(e,"utf-8");return JSON.parse(a)}catch{return null}}async saveConfigFiles(e){await this.ensureConfigDocDir();let r=a.default.join(this.rootPath,this.configDocDir,"metadata","config_files.json");await t.default.writeFile(r,JSON.stringify(e,null,2),"utf-8")}async loadConfigFile(e){let r=a.default.isAbsolute(e)?a.default.normalize(e):a.default.join(this.rootPath,e);return JSON.parse(await t.default.readFile(r,"utf-8"))}async loadConfigDocs(e){let r=a.default.join(this.rootPath,this.configDocDir,"metadata","docs",e);try{let e=await t.default.readFile(r,"utf-8");return JSON.parse(e)}catch{return null}}async saveConfigDocs(e,r){await this.ensureConfigDocDir();let i=a.default.join(this.rootPath,this.configDocDir,"metadata","docs",e),o=a.default.dirname(i);await t.default.mkdir(o,{recursive:!0}),await t.default.writeFile(i,JSON.stringify(r,null,2),"utf-8")}async browseDirectory(e){let r=a.default.isAbsolute(e)?a.default.normalize(e):a.default.join(this.rootPath,e);return(await t.default.readdir(r,{withFileTypes:!0})).filter(e=>!e.name.startsWith(".")).map(e=>{let t=a.default.join(r,e.name);return{name:e.name,path:t,type:e.isDirectory()?"directory":"file",extension:e.isFile()?a.default.extname(e.name):void 0}}).sort((e,t)=>e.type!==t.type?"directory"===e.type?-1:1:e.name.localeCompare(t.name))}async deleteConfigDocs(e){let r=a.default.join(this.rootPath,this.configDocDir,"metadata","docs",e);try{await t.default.unlink(r)}catch{console.log(`Docs file not found: ${e}`)}}}e.s(["FileSystemService",()=>r])},51958,e=>{"use strict";var t=e.i(14747);class a{fs;constructor(e){this.fs=e}async savePropertyDoc(e,t,a){let r=this.getDocsFileName(e),i=this.toRelativePath(e),o=await this.fs.loadConfigDocs(r);o||(o={configFilePath:i,lastModified:new Date().toISOString(),properties:{}}),o.properties[t]=a,o.lastModified=new Date().toISOString(),o.configFilePath=i,await this.fs.saveConfigDocs(r,o)}async loadAllDocs(e){let t=this.getDocsFileName(e),a=await this.fs.loadConfigDocs(t),r=this.toRelativePath(e);return a||{configFilePath:r,lastModified:new Date().toISOString(),properties:{}}}getDocsFileName(e){let t=this.toRelativePath(e),a=t.split(/[/\\]/).filter(e=>e&&"."!==e);return a.length<=1?(a[0]||"config.json").replace(".json",".docs.json"):t.replace(/\.\./g,"__").replace(/[/\\]/g,"_").replace(/:/g,"").replace(".json",".docs.json")}toRelativePath(e){return t.default.isAbsolute(e)?t.default.relative(this.fs.rootPath,e):e}}e.s(["StorageService",()=>a])},28042,e=>{"use strict";var t=e.i(74930),a=e.i(76450),r=e.i(79136),i=e.i(34106),o=e.i(93251),s=e.i(74024),n=e.i(31830),l=e.i(5105),c=e.i(43062),d=e.i(70363),u=e.i(23576),p=e.i(89474),f=e.i(13448),h=e.i(46039),g=e.i(18972),m=e.i(93695);e.i(93699);var w=e.i(58282),v=e.i(9280),x=e.i(14747),R=e.i(79615),y=e.i(51958),D=e.i(66823);async function j(){try{let e=(0,D.getRootPath)(),t=new R.FileSystemService(e),a=new y.StorageService(t),r=await t.loadProjectSettings();if(!r)return v.NextResponse.json({success:!0,data:null});let i=r.configFiles.map((e,t)=>({id:`config-${t+1}`,fileName:e.split(/[/\\]/).pop()||"config.json",filePath:e,docsFileName:a.getDocsFileName(e)})),o={projectName:r.projectName,createdAt:"",lastModified:new Date().toISOString(),configFiles:i};return v.NextResponse.json({success:!0,data:o})}catch(e){return console.error("API Error:",e),v.NextResponse.json({success:!1,error:e instanceof Error?e.message:"Unknown error"},{status:500})}}async function P(e){try{let{configFilePaths:t}=await e.json();if(!Array.isArray(t))return v.NextResponse.json({success:!1,error:"configFilePaths must be an array"},{status:400});let a=(0,D.getRootPath)(),r=new R.FileSystemService(a),i=new y.StorageService(r),o=await r.loadProjectSettings(),s=[];if(o&&o.configFiles){let e=new Set(t.map(e=>x.default.isAbsolute(e)?x.default.relative(a,e):e));for(let t of o.configFiles)if(!e.has(t)){let e=i.getDocsFileName(t);s.push(e),await r.deleteConfigDocs(e)}}let n=t.map(e=>x.default.isAbsolute(e)?x.default.relative(a,e):e),l={projectName:o?.projectName||x.default.basename(a),configFiles:n,export:o?.export||{}};return await r.saveProjectSettings(l),v.NextResponse.json({success:!0,message:"プロジェクト設定を保存しました",deletedDocsFiles:s})}catch(e){return console.error("API Error:",e),v.NextResponse.json({success:!1,error:e instanceof Error?e.message:"Unknown error"},{status:500})}}e.s(["GET",()=>j,"POST",()=>P],94356);var S=e.i(94356);let C=new t.AppRouteRouteModule({definition:{kind:a.RouteKind.APP_ROUTE,page:"/api/config/metadata/route",pathname:"/api/config/metadata",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/packages/web/app/api/config/metadata/route.ts",nextConfigOutput:"standalone",userland:S}),{workAsyncStorage:N,workUnitAsyncStorage:E,serverHooks:A}=C;function F(){return(0,r.patchFetch)({workAsyncStorage:N,workUnitAsyncStorage:E})}async function b(e,t,r){C.isDev&&(0,i.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let v="/api/config/metadata/route";v=v.replace(/\/index$/,"")||"/";let x=await C.prepare(e,t,{srcPage:v,multiZoneDraftMode:!1});if(!x)return t.statusCode=400,t.end("Bad Request"),null==r.waitUntil||r.waitUntil.call(r,Promise.resolve()),null;let{buildId:R,params:y,nextConfig:D,parsedUrl:j,isDraftMode:P,prerenderManifest:S,routerServerContext:N,isOnDemandRevalidate:E,revalidateOnlyGenerated:A,resolvedPathname:F,clientReferenceManifest:b,serverActionsManifest:O}=x,_=(0,n.normalizeAppPath)(v),k=!!(S.dynamicRoutes[_]||S.routes[F]),T=async()=>((null==N?void 0:N.render404)?await N.render404(e,t,j,!1):t.end("This page could not be found"),null);if(k&&!P){let e=!!S.routes[F],t=S.dynamicRoutes[_];if(t&&!1===t.fallback&&!e){if(D.experimental.adapterPath)return await T();throw new m.NoFallbackError}}let I=null;!k||C.isDev||P||(I="/index"===(I=F)?"/":I);let q=!0===C.isDev||!k,U=k&&!q;O&&b&&(0,s.setManifestsSingleton)({page:v,clientReferenceManifest:b,serverActionsManifest:O});let H=e.method||"GET",M=(0,o.getTracer)(),$=M.getActiveScopeSpan(),K={params:y,prerenderManifest:S,renderOpts:{experimental:{authInterrupts:!!D.experimental.authInterrupts},cacheComponents:!!D.cacheComponents,supportsDynamicResponse:q,incrementalCache:(0,i.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:D.cacheLife,waitUntil:r.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,a,r,i)=>C.onRequestError(e,t,r,i,N)},sharedContext:{buildId:R}},J=new l.NodeNextRequest(e),G=new l.NodeNextResponse(t),B=c.NextRequestAdapter.fromNodeNextRequest(J,(0,c.signalFromNodeResponse)(t));try{let s=async e=>C.handle(B,K).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let a=M.getRootSpanAttributes();if(!a)return;if(a.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${a.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let r=a.get("next.route");if(r){let t=`${H} ${r}`;e.setAttributes({"next.route":r,"http.route":r,"next.span_name":t}),e.updateName(t)}else e.updateName(`${H} ${v}`)}),n=!!(0,i.getRequestMeta)(e,"minimalMode"),l=async i=>{var o,l;let c=async({previousCacheEntry:a})=>{try{if(!n&&E&&A&&!a)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let o=await s(i);e.fetchMetrics=K.renderOpts.fetchMetrics;let l=K.renderOpts.pendingWaitUntil;l&&r.waitUntil&&(r.waitUntil(l),l=void 0);let c=K.renderOpts.collectedTags;if(!k)return await (0,p.sendResponse)(J,G,o,K.renderOpts.pendingWaitUntil),null;{let e=await o.blob(),t=(0,f.toNodeOutgoingHttpHeaders)(o.headers);c&&(t[g.NEXT_CACHE_TAGS_HEADER]=c),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let a=void 0!==K.renderOpts.collectedRevalidate&&!(K.renderOpts.collectedRevalidate>=g.INFINITE_CACHE)&&K.renderOpts.collectedRevalidate,r=void 0===K.renderOpts.collectedExpire||K.renderOpts.collectedExpire>=g.INFINITE_CACHE?void 0:K.renderOpts.collectedExpire;return{value:{kind:w.CachedRouteKind.APP_ROUTE,status:o.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:a,expire:r}}}}catch(t){throw(null==a?void 0:a.isStale)&&await C.onRequestError(e,t,{routerKind:"App Router",routePath:v,routeType:"route",revalidateReason:(0,u.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:E})},!1,N),t}},d=await C.handleResponse({req:e,nextConfig:D,cacheKey:I,routeKind:a.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:S,isRoutePPREnabled:!1,isOnDemandRevalidate:E,revalidateOnlyGenerated:A,responseGenerator:c,waitUntil:r.waitUntil,isMinimalMode:n});if(!k)return null;if((null==d||null==(o=d.value)?void 0:o.kind)!==w.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(l=d.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});n||t.setHeader("x-nextjs-cache",E?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),P&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,f.fromNodeOutgoingHttpHeaders)(d.value.headers);return n&&k||m.delete(g.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,h.getCacheControlHeader)(d.cacheControl)),await (0,p.sendResponse)(J,G,new Response(d.value.body,{headers:m,status:d.value.status||200})),null};$?await l($):await M.withPropagatedContext(e.headers,()=>M.trace(d.BaseServerSpan.handleRequest,{spanName:`${H} ${v}`,kind:o.SpanKind.SERVER,attributes:{"http.method":H,"http.target":e.url}},l))}catch(t){if(t instanceof m.NoFallbackError||await C.onRequestError(e,t,{routerKind:"App Router",routePath:_,routeType:"route",revalidateReason:(0,u.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:E})},!1,N),k)throw t;return await (0,p.sendResponse)(J,G,new Response(null,{status:500})),null}}e.s(["handler",()=>b,"patchFetch",()=>F,"routeModule",()=>C,"serverHooks",()=>A,"workAsyncStorage",()=>N,"workUnitAsyncStorage",()=>E],28042)}];
|
|
1
|
+
module.exports=[24868,(e,t,a)=>{t.exports=e.x("fs/promises",()=>require("fs/promises"))},66823,e=>{"use strict";var t=e.i(14747);function a(){return process.env.USER_WORKING_DIR?process.env.USER_WORKING_DIR:t.default.join(process.cwd(),"..","..")}e.s(["getRootPath",()=>a])},93695,(e,t,a)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},32319,(e,t,a)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,a)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},18622,(e,t,a)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,a)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},70406,(e,t,a)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},14747,(e,t,a)=>{t.exports=e.x("path",()=>require("path"))},79615,90088,e=>{"use strict";var t=e.i(24868),a=e.i(14747);function r(e){return JSON.parse(65279===e.charCodeAt(0)?e.slice(1):e)}e.s(["parseJSON",()=>r],90088);class i{configDocDir=".config_doc";rootPath;constructor(e){this.rootPath=e}async ensureConfigDocDir(){let e=a.default.join(this.rootPath,this.configDocDir),r=a.default.join(e,"metadata"),i=a.default.join(r,"docs");try{await t.default.access(e)}catch{await t.default.mkdir(e,{recursive:!0})}await t.default.mkdir(i,{recursive:!0})}async loadProjectSettings(){let e=a.default.join(this.rootPath,this.configDocDir,"project_settings.json");try{let a=await t.default.readFile(e,"utf-8");return r(a)}catch{return null}}async saveProjectSettings(e){await this.ensureConfigDocDir();let r=a.default.join(this.rootPath,this.configDocDir,"project_settings.json");await t.default.writeFile(r,JSON.stringify(e,null,2),"utf-8")}async loadConfigFiles(){let e=a.default.join(this.rootPath,this.configDocDir,"metadata","config_files.json");try{let a=await t.default.readFile(e,"utf-8");return r(a)}catch{return null}}async saveConfigFiles(e){await this.ensureConfigDocDir();let r=a.default.join(this.rootPath,this.configDocDir,"metadata","config_files.json");await t.default.writeFile(r,JSON.stringify(e,null,2),"utf-8")}async loadConfigFile(e){let i=a.default.isAbsolute(e)?a.default.normalize(e):a.default.join(this.rootPath,e);return r(await t.default.readFile(i,"utf-8"))}async loadConfigDocs(e){let i=a.default.join(this.rootPath,this.configDocDir,"metadata","docs",e);try{let e=await t.default.readFile(i,"utf-8");return r(e)}catch{return null}}async saveConfigDocs(e,r){await this.ensureConfigDocDir();let i=a.default.join(this.rootPath,this.configDocDir,"metadata","docs",e),o=a.default.dirname(i);await t.default.mkdir(o,{recursive:!0}),await t.default.writeFile(i,JSON.stringify(r,null,2),"utf-8")}async browseDirectory(e){let r=a.default.isAbsolute(e)?a.default.normalize(e):a.default.join(this.rootPath,e);return(await t.default.readdir(r,{withFileTypes:!0})).filter(e=>!e.name.startsWith(".")).map(e=>{let t=a.default.join(r,e.name);return{name:e.name,path:t,type:e.isDirectory()?"directory":"file",extension:e.isFile()?a.default.extname(e.name):void 0}}).sort((e,t)=>e.type!==t.type?"directory"===e.type?-1:1:e.name.localeCompare(t.name))}async deleteConfigDocs(e){let r=a.default.join(this.rootPath,this.configDocDir,"metadata","docs",e);try{await t.default.unlink(r)}catch{console.log(`Docs file not found: ${e}`)}}}e.s(["FileSystemService",()=>i],79615)},51958,e=>{"use strict";var t=e.i(14747);class a{fs;constructor(e){this.fs=e}async savePropertyDoc(e,t,a){let r=this.getDocsFileName(e),i=this.toRelativePath(e),o=await this.fs.loadConfigDocs(r);o||(o={configFilePath:i,lastModified:new Date().toISOString(),properties:{}}),o.properties[t]=a,o.lastModified=new Date().toISOString(),o.configFilePath=i,await this.fs.saveConfigDocs(r,o)}async loadAllDocs(e){let t=this.getDocsFileName(e),a=await this.fs.loadConfigDocs(t),r=this.toRelativePath(e);return a||{configFilePath:r,lastModified:new Date().toISOString(),properties:{}}}getDocsFileName(e){let t=this.toRelativePath(e),a=t.split(/[/\\]/).filter(e=>e&&"."!==e);return a.length<=1?(a[0]||"config.json").replace(".json",".docs.json"):t.replace(/\.\./g,"__").replace(/[/\\]/g,"_").replace(/:/g,"").replace(".json",".docs.json")}toRelativePath(e){return t.default.isAbsolute(e)?t.default.relative(this.fs.rootPath,e):e}}e.s(["StorageService",()=>a])},28042,e=>{"use strict";var t=e.i(74930),a=e.i(76450),r=e.i(79136),i=e.i(34106),o=e.i(93251),s=e.i(74024),n=e.i(31830),l=e.i(5105),c=e.i(43062),d=e.i(70363),u=e.i(23576),p=e.i(89474),f=e.i(13448),h=e.i(46039),g=e.i(18972),m=e.i(93695);e.i(93699);var w=e.i(58282),v=e.i(9280),x=e.i(14747),R=e.i(79615),y=e.i(51958),D=e.i(66823);async function j(){try{let e=(0,D.getRootPath)(),t=new R.FileSystemService(e),a=new y.StorageService(t),r=await t.loadProjectSettings();if(!r)return v.NextResponse.json({success:!0,data:null});let i=r.configFiles.map((e,t)=>({id:`config-${t+1}`,fileName:e.split(/[/\\]/).pop()||"config.json",filePath:e,docsFileName:a.getDocsFileName(e)})),o={projectName:r.projectName,createdAt:"",lastModified:new Date().toISOString(),configFiles:i};return v.NextResponse.json({success:!0,data:o})}catch(e){return console.error("API Error:",e),v.NextResponse.json({success:!1,error:e instanceof Error?e.message:"Unknown error"},{status:500})}}async function P(e){try{let{configFilePaths:t}=await e.json();if(!Array.isArray(t))return v.NextResponse.json({success:!1,error:"configFilePaths must be an array"},{status:400});let a=(0,D.getRootPath)(),r=new R.FileSystemService(a),i=new y.StorageService(r),o=await r.loadProjectSettings(),s=[];if(o&&o.configFiles){let e=new Set(t.map(e=>x.default.isAbsolute(e)?x.default.relative(a,e):e));for(let t of o.configFiles)if(!e.has(t)){let e=i.getDocsFileName(t);s.push(e),await r.deleteConfigDocs(e)}}let n=t.map(e=>x.default.isAbsolute(e)?x.default.relative(a,e):e),l={projectName:o?.projectName||x.default.basename(a),configFiles:n,export:o?.export||{}};return await r.saveProjectSettings(l),v.NextResponse.json({success:!0,message:"プロジェクト設定を保存しました",deletedDocsFiles:s})}catch(e){return console.error("API Error:",e),v.NextResponse.json({success:!1,error:e instanceof Error?e.message:"Unknown error"},{status:500})}}e.s(["GET",()=>j,"POST",()=>P],94356);var S=e.i(94356);let C=new t.AppRouteRouteModule({definition:{kind:a.RouteKind.APP_ROUTE,page:"/api/config/metadata/route",pathname:"/api/config/metadata",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/packages/web/app/api/config/metadata/route.ts",nextConfigOutput:"standalone",userland:S}),{workAsyncStorage:E,workUnitAsyncStorage:N,serverHooks:A}=C;function F(){return(0,r.patchFetch)({workAsyncStorage:E,workUnitAsyncStorage:N})}async function b(e,t,r){C.isDev&&(0,i.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let v="/api/config/metadata/route";v=v.replace(/\/index$/,"")||"/";let x=await C.prepare(e,t,{srcPage:v,multiZoneDraftMode:!1});if(!x)return t.statusCode=400,t.end("Bad Request"),null==r.waitUntil||r.waitUntil.call(r,Promise.resolve()),null;let{buildId:R,params:y,nextConfig:D,parsedUrl:j,isDraftMode:P,prerenderManifest:S,routerServerContext:E,isOnDemandRevalidate:N,revalidateOnlyGenerated:A,resolvedPathname:F,clientReferenceManifest:b,serverActionsManifest:O}=x,_=(0,n.normalizeAppPath)(v),k=!!(S.dynamicRoutes[_]||S.routes[F]),T=async()=>((null==E?void 0:E.render404)?await E.render404(e,t,j,!1):t.end("This page could not be found"),null);if(k&&!P){let e=!!S.routes[F],t=S.dynamicRoutes[_];if(t&&!1===t.fallback&&!e){if(D.experimental.adapterPath)return await T();throw new m.NoFallbackError}}let I=null;!k||C.isDev||P||(I="/index"===(I=F)?"/":I);let q=!0===C.isDev||!k,U=k&&!q;O&&b&&(0,s.setManifestsSingleton)({page:v,clientReferenceManifest:b,serverActionsManifest:O});let H=e.method||"GET",M=(0,o.getTracer)(),$=M.getActiveScopeSpan(),K={params:y,prerenderManifest:S,renderOpts:{experimental:{authInterrupts:!!D.experimental.authInterrupts},cacheComponents:!!D.cacheComponents,supportsDynamicResponse:q,incrementalCache:(0,i.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:D.cacheLife,waitUntil:r.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,a,r,i)=>C.onRequestError(e,t,r,i,E)},sharedContext:{buildId:R}},G=new l.NodeNextRequest(e),B=new l.NodeNextResponse(t),J=c.NextRequestAdapter.fromNodeNextRequest(G,(0,c.signalFromNodeResponse)(t));try{let s=async e=>C.handle(J,K).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let a=M.getRootSpanAttributes();if(!a)return;if(a.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${a.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let r=a.get("next.route");if(r){let t=`${H} ${r}`;e.setAttributes({"next.route":r,"http.route":r,"next.span_name":t}),e.updateName(t)}else e.updateName(`${H} ${v}`)}),n=!!(0,i.getRequestMeta)(e,"minimalMode"),l=async i=>{var o,l;let c=async({previousCacheEntry:a})=>{try{if(!n&&N&&A&&!a)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let o=await s(i);e.fetchMetrics=K.renderOpts.fetchMetrics;let l=K.renderOpts.pendingWaitUntil;l&&r.waitUntil&&(r.waitUntil(l),l=void 0);let c=K.renderOpts.collectedTags;if(!k)return await (0,p.sendResponse)(G,B,o,K.renderOpts.pendingWaitUntil),null;{let e=await o.blob(),t=(0,f.toNodeOutgoingHttpHeaders)(o.headers);c&&(t[g.NEXT_CACHE_TAGS_HEADER]=c),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let a=void 0!==K.renderOpts.collectedRevalidate&&!(K.renderOpts.collectedRevalidate>=g.INFINITE_CACHE)&&K.renderOpts.collectedRevalidate,r=void 0===K.renderOpts.collectedExpire||K.renderOpts.collectedExpire>=g.INFINITE_CACHE?void 0:K.renderOpts.collectedExpire;return{value:{kind:w.CachedRouteKind.APP_ROUTE,status:o.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:a,expire:r}}}}catch(t){throw(null==a?void 0:a.isStale)&&await C.onRequestError(e,t,{routerKind:"App Router",routePath:v,routeType:"route",revalidateReason:(0,u.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:N})},!1,E),t}},d=await C.handleResponse({req:e,nextConfig:D,cacheKey:I,routeKind:a.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:S,isRoutePPREnabled:!1,isOnDemandRevalidate:N,revalidateOnlyGenerated:A,responseGenerator:c,waitUntil:r.waitUntil,isMinimalMode:n});if(!k)return null;if((null==d||null==(o=d.value)?void 0:o.kind)!==w.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(l=d.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});n||t.setHeader("x-nextjs-cache",N?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),P&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,f.fromNodeOutgoingHttpHeaders)(d.value.headers);return n&&k||m.delete(g.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,h.getCacheControlHeader)(d.cacheControl)),await (0,p.sendResponse)(G,B,new Response(d.value.body,{headers:m,status:d.value.status||200})),null};$?await l($):await M.withPropagatedContext(e.headers,()=>M.trace(d.BaseServerSpan.handleRequest,{spanName:`${H} ${v}`,kind:o.SpanKind.SERVER,attributes:{"http.method":H,"http.target":e.url}},l))}catch(t){if(t instanceof m.NoFallbackError||await C.onRequestError(e,t,{routerKind:"App Router",routePath:_,routeType:"route",revalidateReason:(0,u.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:N})},!1,E),k)throw t;return await (0,p.sendResponse)(G,B,new Response(null,{status:500})),null}}e.s(["handler",()=>b,"patchFetch",()=>F,"routeModule",()=>C,"serverHooks",()=>A,"workAsyncStorage",()=>E,"workUnitAsyncStorage",()=>N],28042)}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=%5Broot-of-the-server%5D__8c565558._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[24868,(e,t,a)=>{t.exports=e.x("fs/promises",()=>require("fs/promises"))},66823,e=>{"use strict";var t=e.i(14747);function a(){return process.env.USER_WORKING_DIR?process.env.USER_WORKING_DIR:t.default.join(process.cwd(),"..","..")}e.s(["getRootPath",()=>a])},93695,(e,t,a)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},32319,(e,t,a)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,a)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},18622,(e,t,a)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,a)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},70406,(e,t,a)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},14747,(e,t,a)=>{t.exports=e.x("path",()=>require("path"))},79615,e=>{"use strict";var t=e.i(24868),a=e.i(14747);class r{configDocDir=".config_doc";rootPath;constructor(e){this.rootPath=e}async ensureConfigDocDir(){let e=a.default.join(this.rootPath,this.configDocDir),r=a.default.join(e,"metadata"),i=a.default.join(r,"docs");try{await t.default.access(e)}catch{await t.default.mkdir(e,{recursive:!0})}await t.default.mkdir(i,{recursive:!0})}async loadProjectSettings(){let e=a.default.join(this.rootPath,this.configDocDir,"project_settings.json");try{let a=await t.default.readFile(e,"utf-8");return JSON.parse(a)}catch{return null}}async saveProjectSettings(e){await this.ensureConfigDocDir();let r=a.default.join(this.rootPath,this.configDocDir,"project_settings.json");await t.default.writeFile(r,JSON.stringify(e,null,2),"utf-8")}async loadConfigFiles(){let e=a.default.join(this.rootPath,this.configDocDir,"metadata","config_files.json");try{let a=await t.default.readFile(e,"utf-8");return JSON.parse(a)}catch{return null}}async saveConfigFiles(e){await this.ensureConfigDocDir();let r=a.default.join(this.rootPath,this.configDocDir,"metadata","config_files.json");await t.default.writeFile(r,JSON.stringify(e,null,2),"utf-8")}async loadConfigFile(e){let r=a.default.isAbsolute(e)?a.default.normalize(e):a.default.join(this.rootPath,e);return JSON.parse(await t.default.readFile(r,"utf-8"))}async loadConfigDocs(e){let r=a.default.join(this.rootPath,this.configDocDir,"metadata","docs",e);try{let e=await t.default.readFile(r,"utf-8");return JSON.parse(e)}catch{return null}}async saveConfigDocs(e,r){await this.ensureConfigDocDir();let i=a.default.join(this.rootPath,this.configDocDir,"metadata","docs",e),s=a.default.dirname(i);await t.default.mkdir(s,{recursive:!0}),await t.default.writeFile(i,JSON.stringify(r,null,2),"utf-8")}async browseDirectory(e){let r=a.default.isAbsolute(e)?a.default.normalize(e):a.default.join(this.rootPath,e);return(await t.default.readdir(r,{withFileTypes:!0})).filter(e=>!e.name.startsWith(".")).map(e=>{let t=a.default.join(r,e.name);return{name:e.name,path:t,type:e.isDirectory()?"directory":"file",extension:e.isFile()?a.default.extname(e.name):void 0}}).sort((e,t)=>e.type!==t.type?"directory"===e.type?-1:1:e.name.localeCompare(t.name))}async deleteConfigDocs(e){let r=a.default.join(this.rootPath,this.configDocDir,"metadata","docs",e);try{await t.default.unlink(r)}catch{console.log(`Docs file not found: ${e}`)}}}e.s(["FileSystemService",()=>r])},51958,e=>{"use strict";var t=e.i(14747);class a{fs;constructor(e){this.fs=e}async savePropertyDoc(e,t,a){let r=this.getDocsFileName(e),i=this.toRelativePath(e),s=await this.fs.loadConfigDocs(r);s||(s={configFilePath:i,lastModified:new Date().toISOString(),properties:{}}),s.properties[t]=a,s.lastModified=new Date().toISOString(),s.configFilePath=i,await this.fs.saveConfigDocs(r,s)}async loadAllDocs(e){let t=this.getDocsFileName(e),a=await this.fs.loadConfigDocs(t),r=this.toRelativePath(e);return a||{configFilePath:r,lastModified:new Date().toISOString(),properties:{}}}getDocsFileName(e){let t=this.toRelativePath(e),a=t.split(/[/\\]/).filter(e=>e&&"."!==e);return a.length<=1?(a[0]||"config.json").replace(".json",".docs.json"):t.replace(/\.\./g,"__").replace(/[/\\]/g,"_").replace(/:/g,"").replace(".json",".docs.json")}toRelativePath(e){return t.default.isAbsolute(e)?t.default.relative(this.fs.rootPath,e):e}}e.s(["StorageService",()=>a])},18502,e=>{"use strict";var t=e.i(74930),a=e.i(76450),r=e.i(79136),i=e.i(34106),s=e.i(93251),n=e.i(74024),o=e.i(31830),l=e.i(5105),c=e.i(43062),d=e.i(70363),u=e.i(23576),p=e.i(89474),f=e.i(13448),h=e.i(46039),g=e.i(18972),v=e.i(93695);e.i(93699);var w=e.i(58282),x=e.i(9280),m=e.i(79615),R=e.i(51958),y=e.i(66823);async function D(e){try{let{configFilePath:t,propertyPath:a,propertyDoc:r}=await e.json();if(!t||!a||!r)return x.NextResponse.json({success:!1,error:"Missing required fields"},{status:400});let i=(0,y.getRootPath)(),s=new m.FileSystemService(i),n=new R.StorageService(s);await s.ensureConfigDocDir(),await n.savePropertyDoc(t,a,r);let o=await s.loadConfigFiles();return o&&(o.lastModified=new Date().toISOString(),await s.saveConfigFiles(o)),x.NextResponse.json({success:!0,message:"ドキュメントを保存しました"})}catch(e){return console.error("API Error:",e),x.NextResponse.json({success:!1,error:e instanceof Error?e.message:"Unknown error"},{status:500})}}e.s(["POST",()=>D],46051);var C=e.i(46051);let P=new t.AppRouteRouteModule({definition:{kind:a.RouteKind.APP_ROUTE,page:"/api/config/save/route",pathname:"/api/config/save",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/packages/web/app/api/config/save/route.ts",nextConfigOutput:"standalone",userland:C}),{workAsyncStorage:j,workUnitAsyncStorage:S,serverHooks:E}=P;function N(){return(0,r.patchFetch)({workAsyncStorage:j,workUnitAsyncStorage:S})}async function O(e,t,r){P.isDev&&(0,i.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let x="/api/config/save/route";x=x.replace(/\/index$/,"")||"/";let m=await P.prepare(e,t,{srcPage:x,multiZoneDraftMode:!1});if(!m)return t.statusCode=400,t.end("Bad Request"),null==r.waitUntil||r.waitUntil.call(r,Promise.resolve()),null;let{buildId:R,params:y,nextConfig:D,parsedUrl:C,isDraftMode:j,prerenderManifest:S,routerServerContext:E,isOnDemandRevalidate:N,revalidateOnlyGenerated:O,resolvedPathname:A,clientReferenceManifest:b,serverActionsManifest:_}=m,F=(0,o.normalizeAppPath)(x),k=!!(S.dynamicRoutes[F]||S.routes[A]),T=async()=>((null==E?void 0:E.render404)?await E.render404(e,t,C,!1):t.end("This page could not be found"),null);if(k&&!j){let e=!!S.routes[A],t=S.dynamicRoutes[F];if(t&&!1===t.fallback&&!e){if(D.experimental.adapterPath)return await T();throw new v.NoFallbackError}}let I=null;!k||P.isDev||j||(I="/index"===(I=A)?"/":I);let q=!0===P.isDev||!k,U=k&&!q;_&&b&&(0,n.setManifestsSingleton)({page:x,clientReferenceManifest:b,serverActionsManifest:_});let H=e.method||"GET",M=(0,s.getTracer)(),K=M.getActiveScopeSpan(),$={params:y,prerenderManifest:S,renderOpts:{experimental:{authInterrupts:!!D.experimental.authInterrupts},cacheComponents:!!D.cacheComponents,supportsDynamicResponse:q,incrementalCache:(0,i.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:D.cacheLife,waitUntil:r.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,a,r,i)=>P.onRequestError(e,t,r,i,E)},sharedContext:{buildId:R}},J=new l.NodeNextRequest(e),B=new l.NodeNextResponse(t),G=c.NextRequestAdapter.fromNodeNextRequest(J,(0,c.signalFromNodeResponse)(t));try{let n=async e=>P.handle(G,$).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let a=M.getRootSpanAttributes();if(!a)return;if(a.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${a.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let r=a.get("next.route");if(r){let t=`${H} ${r}`;e.setAttributes({"next.route":r,"http.route":r,"next.span_name":t}),e.updateName(t)}else e.updateName(`${H} ${x}`)}),o=!!(0,i.getRequestMeta)(e,"minimalMode"),l=async i=>{var s,l;let c=async({previousCacheEntry:a})=>{try{if(!o&&N&&O&&!a)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await n(i);e.fetchMetrics=$.renderOpts.fetchMetrics;let l=$.renderOpts.pendingWaitUntil;l&&r.waitUntil&&(r.waitUntil(l),l=void 0);let c=$.renderOpts.collectedTags;if(!k)return await (0,p.sendResponse)(J,B,s,$.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,f.toNodeOutgoingHttpHeaders)(s.headers);c&&(t[g.NEXT_CACHE_TAGS_HEADER]=c),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let a=void 0!==$.renderOpts.collectedRevalidate&&!($.renderOpts.collectedRevalidate>=g.INFINITE_CACHE)&&$.renderOpts.collectedRevalidate,r=void 0===$.renderOpts.collectedExpire||$.renderOpts.collectedExpire>=g.INFINITE_CACHE?void 0:$.renderOpts.collectedExpire;return{value:{kind:w.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:a,expire:r}}}}catch(t){throw(null==a?void 0:a.isStale)&&await P.onRequestError(e,t,{routerKind:"App Router",routePath:x,routeType:"route",revalidateReason:(0,u.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:N})},!1,E),t}},d=await P.handleResponse({req:e,nextConfig:D,cacheKey:I,routeKind:a.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:S,isRoutePPREnabled:!1,isOnDemandRevalidate:N,revalidateOnlyGenerated:O,responseGenerator:c,waitUntil:r.waitUntil,isMinimalMode:o});if(!k)return null;if((null==d||null==(s=d.value)?void 0:s.kind)!==w.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(l=d.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});o||t.setHeader("x-nextjs-cache",N?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),j&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let v=(0,f.fromNodeOutgoingHttpHeaders)(d.value.headers);return o&&k||v.delete(g.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||v.get("Cache-Control")||v.set("Cache-Control",(0,h.getCacheControlHeader)(d.cacheControl)),await (0,p.sendResponse)(J,B,new Response(d.value.body,{headers:v,status:d.value.status||200})),null};K?await l(K):await M.withPropagatedContext(e.headers,()=>M.trace(d.BaseServerSpan.handleRequest,{spanName:`${H} ${x}`,kind:s.SpanKind.SERVER,attributes:{"http.method":H,"http.target":e.url}},l))}catch(t){if(t instanceof v.NoFallbackError||await P.onRequestError(e,t,{routerKind:"App Router",routePath:F,routeType:"route",revalidateReason:(0,u.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:N})},!1,E),k)throw t;return await (0,p.sendResponse)(J,B,new Response(null,{status:500})),null}}e.s(["handler",()=>O,"patchFetch",()=>N,"routeModule",()=>P,"serverHooks",()=>E,"workAsyncStorage",()=>j,"workUnitAsyncStorage",()=>S],18502)}];
|
|
1
|
+
module.exports=[24868,(e,t,a)=>{t.exports=e.x("fs/promises",()=>require("fs/promises"))},66823,e=>{"use strict";var t=e.i(14747);function a(){return process.env.USER_WORKING_DIR?process.env.USER_WORKING_DIR:t.default.join(process.cwd(),"..","..")}e.s(["getRootPath",()=>a])},93695,(e,t,a)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},32319,(e,t,a)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,a)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},18622,(e,t,a)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,a)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},70406,(e,t,a)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},14747,(e,t,a)=>{t.exports=e.x("path",()=>require("path"))},79615,90088,e=>{"use strict";var t=e.i(24868),a=e.i(14747);function r(e){return JSON.parse(65279===e.charCodeAt(0)?e.slice(1):e)}e.s(["parseJSON",()=>r],90088);class i{configDocDir=".config_doc";rootPath;constructor(e){this.rootPath=e}async ensureConfigDocDir(){let e=a.default.join(this.rootPath,this.configDocDir),r=a.default.join(e,"metadata"),i=a.default.join(r,"docs");try{await t.default.access(e)}catch{await t.default.mkdir(e,{recursive:!0})}await t.default.mkdir(i,{recursive:!0})}async loadProjectSettings(){let e=a.default.join(this.rootPath,this.configDocDir,"project_settings.json");try{let a=await t.default.readFile(e,"utf-8");return r(a)}catch{return null}}async saveProjectSettings(e){await this.ensureConfigDocDir();let r=a.default.join(this.rootPath,this.configDocDir,"project_settings.json");await t.default.writeFile(r,JSON.stringify(e,null,2),"utf-8")}async loadConfigFiles(){let e=a.default.join(this.rootPath,this.configDocDir,"metadata","config_files.json");try{let a=await t.default.readFile(e,"utf-8");return r(a)}catch{return null}}async saveConfigFiles(e){await this.ensureConfigDocDir();let r=a.default.join(this.rootPath,this.configDocDir,"metadata","config_files.json");await t.default.writeFile(r,JSON.stringify(e,null,2),"utf-8")}async loadConfigFile(e){let i=a.default.isAbsolute(e)?a.default.normalize(e):a.default.join(this.rootPath,e);return r(await t.default.readFile(i,"utf-8"))}async loadConfigDocs(e){let i=a.default.join(this.rootPath,this.configDocDir,"metadata","docs",e);try{let e=await t.default.readFile(i,"utf-8");return r(e)}catch{return null}}async saveConfigDocs(e,r){await this.ensureConfigDocDir();let i=a.default.join(this.rootPath,this.configDocDir,"metadata","docs",e),n=a.default.dirname(i);await t.default.mkdir(n,{recursive:!0}),await t.default.writeFile(i,JSON.stringify(r,null,2),"utf-8")}async browseDirectory(e){let r=a.default.isAbsolute(e)?a.default.normalize(e):a.default.join(this.rootPath,e);return(await t.default.readdir(r,{withFileTypes:!0})).filter(e=>!e.name.startsWith(".")).map(e=>{let t=a.default.join(r,e.name);return{name:e.name,path:t,type:e.isDirectory()?"directory":"file",extension:e.isFile()?a.default.extname(e.name):void 0}}).sort((e,t)=>e.type!==t.type?"directory"===e.type?-1:1:e.name.localeCompare(t.name))}async deleteConfigDocs(e){let r=a.default.join(this.rootPath,this.configDocDir,"metadata","docs",e);try{await t.default.unlink(r)}catch{console.log(`Docs file not found: ${e}`)}}}e.s(["FileSystemService",()=>i],79615)},51958,e=>{"use strict";var t=e.i(14747);class a{fs;constructor(e){this.fs=e}async savePropertyDoc(e,t,a){let r=this.getDocsFileName(e),i=this.toRelativePath(e),n=await this.fs.loadConfigDocs(r);n||(n={configFilePath:i,lastModified:new Date().toISOString(),properties:{}}),n.properties[t]=a,n.lastModified=new Date().toISOString(),n.configFilePath=i,await this.fs.saveConfigDocs(r,n)}async loadAllDocs(e){let t=this.getDocsFileName(e),a=await this.fs.loadConfigDocs(t),r=this.toRelativePath(e);return a||{configFilePath:r,lastModified:new Date().toISOString(),properties:{}}}getDocsFileName(e){let t=this.toRelativePath(e),a=t.split(/[/\\]/).filter(e=>e&&"."!==e);return a.length<=1?(a[0]||"config.json").replace(".json",".docs.json"):t.replace(/\.\./g,"__").replace(/[/\\]/g,"_").replace(/:/g,"").replace(".json",".docs.json")}toRelativePath(e){return t.default.isAbsolute(e)?t.default.relative(this.fs.rootPath,e):e}}e.s(["StorageService",()=>a])},18502,e=>{"use strict";var t=e.i(74930),a=e.i(76450),r=e.i(79136),i=e.i(34106),n=e.i(93251),o=e.i(74024),s=e.i(31830),l=e.i(5105),c=e.i(43062),d=e.i(70363),u=e.i(23576),p=e.i(89474),f=e.i(13448),h=e.i(46039),g=e.i(18972),v=e.i(93695);e.i(93699);var w=e.i(58282),x=e.i(9280),m=e.i(79615),R=e.i(51958),y=e.i(66823);async function D(e){try{let{configFilePath:t,propertyPath:a,propertyDoc:r}=await e.json();if(!t||!a||!r)return x.NextResponse.json({success:!1,error:"Missing required fields"},{status:400});let i=(0,y.getRootPath)(),n=new m.FileSystemService(i),o=new R.StorageService(n);await n.ensureConfigDocDir(),await o.savePropertyDoc(t,a,r);let s=await n.loadConfigFiles();return s&&(s.lastModified=new Date().toISOString(),await n.saveConfigFiles(s)),x.NextResponse.json({success:!0,message:"ドキュメントを保存しました"})}catch(e){return console.error("API Error:",e),x.NextResponse.json({success:!1,error:e instanceof Error?e.message:"Unknown error"},{status:500})}}e.s(["POST",()=>D],46051);var C=e.i(46051);let P=new t.AppRouteRouteModule({definition:{kind:a.RouteKind.APP_ROUTE,page:"/api/config/save/route",pathname:"/api/config/save",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/packages/web/app/api/config/save/route.ts",nextConfigOutput:"standalone",userland:C}),{workAsyncStorage:j,workUnitAsyncStorage:E,serverHooks:S}=P;function N(){return(0,r.patchFetch)({workAsyncStorage:j,workUnitAsyncStorage:E})}async function A(e,t,r){P.isDev&&(0,i.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let x="/api/config/save/route";x=x.replace(/\/index$/,"")||"/";let m=await P.prepare(e,t,{srcPage:x,multiZoneDraftMode:!1});if(!m)return t.statusCode=400,t.end("Bad Request"),null==r.waitUntil||r.waitUntil.call(r,Promise.resolve()),null;let{buildId:R,params:y,nextConfig:D,parsedUrl:C,isDraftMode:j,prerenderManifest:E,routerServerContext:S,isOnDemandRevalidate:N,revalidateOnlyGenerated:A,resolvedPathname:O,clientReferenceManifest:b,serverActionsManifest:_}=m,F=(0,s.normalizeAppPath)(x),k=!!(E.dynamicRoutes[F]||E.routes[O]),T=async()=>((null==S?void 0:S.render404)?await S.render404(e,t,C,!1):t.end("This page could not be found"),null);if(k&&!j){let e=!!E.routes[O],t=E.dynamicRoutes[F];if(t&&!1===t.fallback&&!e){if(D.experimental.adapterPath)return await T();throw new v.NoFallbackError}}let I=null;!k||P.isDev||j||(I="/index"===(I=O)?"/":I);let q=!0===P.isDev||!k,U=k&&!q;_&&b&&(0,o.setManifestsSingleton)({page:x,clientReferenceManifest:b,serverActionsManifest:_});let H=e.method||"GET",M=(0,n.getTracer)(),K=M.getActiveScopeSpan(),$={params:y,prerenderManifest:E,renderOpts:{experimental:{authInterrupts:!!D.experimental.authInterrupts},cacheComponents:!!D.cacheComponents,supportsDynamicResponse:q,incrementalCache:(0,i.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:D.cacheLife,waitUntil:r.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,a,r,i)=>P.onRequestError(e,t,r,i,S)},sharedContext:{buildId:R}},B=new l.NodeNextRequest(e),G=new l.NodeNextResponse(t),J=c.NextRequestAdapter.fromNodeNextRequest(B,(0,c.signalFromNodeResponse)(t));try{let o=async e=>P.handle(J,$).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let a=M.getRootSpanAttributes();if(!a)return;if(a.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${a.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let r=a.get("next.route");if(r){let t=`${H} ${r}`;e.setAttributes({"next.route":r,"http.route":r,"next.span_name":t}),e.updateName(t)}else e.updateName(`${H} ${x}`)}),s=!!(0,i.getRequestMeta)(e,"minimalMode"),l=async i=>{var n,l;let c=async({previousCacheEntry:a})=>{try{if(!s&&N&&A&&!a)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let n=await o(i);e.fetchMetrics=$.renderOpts.fetchMetrics;let l=$.renderOpts.pendingWaitUntil;l&&r.waitUntil&&(r.waitUntil(l),l=void 0);let c=$.renderOpts.collectedTags;if(!k)return await (0,p.sendResponse)(B,G,n,$.renderOpts.pendingWaitUntil),null;{let e=await n.blob(),t=(0,f.toNodeOutgoingHttpHeaders)(n.headers);c&&(t[g.NEXT_CACHE_TAGS_HEADER]=c),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let a=void 0!==$.renderOpts.collectedRevalidate&&!($.renderOpts.collectedRevalidate>=g.INFINITE_CACHE)&&$.renderOpts.collectedRevalidate,r=void 0===$.renderOpts.collectedExpire||$.renderOpts.collectedExpire>=g.INFINITE_CACHE?void 0:$.renderOpts.collectedExpire;return{value:{kind:w.CachedRouteKind.APP_ROUTE,status:n.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:a,expire:r}}}}catch(t){throw(null==a?void 0:a.isStale)&&await P.onRequestError(e,t,{routerKind:"App Router",routePath:x,routeType:"route",revalidateReason:(0,u.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:N})},!1,S),t}},d=await P.handleResponse({req:e,nextConfig:D,cacheKey:I,routeKind:a.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:E,isRoutePPREnabled:!1,isOnDemandRevalidate:N,revalidateOnlyGenerated:A,responseGenerator:c,waitUntil:r.waitUntil,isMinimalMode:s});if(!k)return null;if((null==d||null==(n=d.value)?void 0:n.kind)!==w.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(l=d.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});s||t.setHeader("x-nextjs-cache",N?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),j&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let v=(0,f.fromNodeOutgoingHttpHeaders)(d.value.headers);return s&&k||v.delete(g.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||v.get("Cache-Control")||v.set("Cache-Control",(0,h.getCacheControlHeader)(d.cacheControl)),await (0,p.sendResponse)(B,G,new Response(d.value.body,{headers:v,status:d.value.status||200})),null};K?await l(K):await M.withPropagatedContext(e.headers,()=>M.trace(d.BaseServerSpan.handleRequest,{spanName:`${H} ${x}`,kind:n.SpanKind.SERVER,attributes:{"http.method":H,"http.target":e.url}},l))}catch(t){if(t instanceof v.NoFallbackError||await P.onRequestError(e,t,{routerKind:"App Router",routePath:F,routeType:"route",revalidateReason:(0,u.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:N})},!1,S),k)throw t;return await (0,p.sendResponse)(B,G,new Response(null,{status:500})),null}}e.s(["handler",()=>A,"patchFetch",()=>N,"routeModule",()=>P,"serverHooks",()=>S,"workAsyncStorage",()=>j,"workUnitAsyncStorage",()=>E],18502)}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=%5Broot-of-the-server%5D__9ecfb8b3._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[24868,(e,t,r)=>{t.exports=e.x("fs/promises",()=>require("fs/promises"))},66823,e=>{"use strict";var t=e.i(14747);function r(){return process.env.USER_WORKING_DIR?process.env.USER_WORKING_DIR:t.default.join(process.cwd(),"..","..")}e.s(["getRootPath",()=>r])},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},79615,e=>{"use strict";var t=e.i(24868),r=e.i(14747);class a{configDocDir=".config_doc";rootPath;constructor(e){this.rootPath=e}async ensureConfigDocDir(){let e=r.default.join(this.rootPath,this.configDocDir),a=r.default.join(e,"metadata"),i=r.default.join(a,"docs");try{await t.default.access(e)}catch{await t.default.mkdir(e,{recursive:!0})}await t.default.mkdir(i,{recursive:!0})}async loadProjectSettings(){let e=r.default.join(this.rootPath,this.configDocDir,"project_settings.json");try{let r=await t.default.readFile(e,"utf-8");return JSON.parse(r)}catch{return null}}async saveProjectSettings(e){await this.ensureConfigDocDir();let a=r.default.join(this.rootPath,this.configDocDir,"project_settings.json");await t.default.writeFile(a,JSON.stringify(e,null,2),"utf-8")}async loadConfigFiles(){let e=r.default.join(this.rootPath,this.configDocDir,"metadata","config_files.json");try{let r=await t.default.readFile(e,"utf-8");return JSON.parse(r)}catch{return null}}async saveConfigFiles(e){await this.ensureConfigDocDir();let a=r.default.join(this.rootPath,this.configDocDir,"metadata","config_files.json");await t.default.writeFile(a,JSON.stringify(e,null,2),"utf-8")}async loadConfigFile(e){let a=r.default.isAbsolute(e)?r.default.normalize(e):r.default.join(this.rootPath,e);return JSON.parse(await t.default.readFile(a,"utf-8"))}async loadConfigDocs(e){let a=r.default.join(this.rootPath,this.configDocDir,"metadata","docs",e);try{let e=await t.default.readFile(a,"utf-8");return JSON.parse(e)}catch{return null}}async saveConfigDocs(e,a){await this.ensureConfigDocDir();let i=r.default.join(this.rootPath,this.configDocDir,"metadata","docs",e),n=r.default.dirname(i);await t.default.mkdir(n,{recursive:!0}),await t.default.writeFile(i,JSON.stringify(a,null,2),"utf-8")}async browseDirectory(e){let a=r.default.isAbsolute(e)?r.default.normalize(e):r.default.join(this.rootPath,e);return(await t.default.readdir(a,{withFileTypes:!0})).filter(e=>!e.name.startsWith(".")).map(e=>{let t=r.default.join(a,e.name);return{name:e.name,path:t,type:e.isDirectory()?"directory":"file",extension:e.isFile()?r.default.extname(e.name):void 0}}).sort((e,t)=>e.type!==t.type?"directory"===e.type?-1:1:e.name.localeCompare(t.name))}async deleteConfigDocs(e){let a=r.default.join(this.rootPath,this.configDocDir,"metadata","docs",e);try{await t.default.unlink(a)}catch{console.log(`Docs file not found: ${e}`)}}}e.s(["FileSystemService",()=>a])},7658,e=>{"use strict";var t=e.i(74930),r=e.i(76450),a=e.i(79136),i=e.i(34106),n=e.i(93251),o=e.i(74024),s=e.i(31830),l=e.i(5105),u=e.i(43062),d=e.i(70363),c=e.i(23576),p=e.i(89474),f=e.i(13448),h=e.i(46039),g=e.i(18972),x=e.i(93695);e.i(93699);var w=e.i(58282),m=e.i(9280),R=e.i(79615),y=e.i(66823);async function v(e){try{let{directory:t}=await e.json();if(!t)return m.NextResponse.json({success:!1,error:"directory is required"},{status:400});let r=(0,y.getRootPath)(),a=new R.FileSystemService(r),i=await a.browseDirectory(t);return m.NextResponse.json({success:!0,data:{currentPath:t,items:i}})}catch(e){return console.error("API Error:",e),m.NextResponse.json({success:!1,error:e instanceof Error?e.message:"Unknown error"},{status:500})}}e.s(["POST",()=>v],62287);var D=e.i(62287);let C=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/files/browse/route",pathname:"/api/files/browse",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/packages/web/app/api/files/browse/route.ts",nextConfigOutput:"standalone",userland:D}),{workAsyncStorage:E,workUnitAsyncStorage:j,serverHooks:P}=C;function b(){return(0,a.patchFetch)({workAsyncStorage:E,workUnitAsyncStorage:j})}async function N(e,t,a){C.isDev&&(0,i.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let m="/api/files/browse/route";m=m.replace(/\/index$/,"")||"/";let R=await C.prepare(e,t,{srcPage:m,multiZoneDraftMode:!1});if(!R)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:y,params:v,nextConfig:D,parsedUrl:E,isDraftMode:j,prerenderManifest:P,routerServerContext:b,isOnDemandRevalidate:N,revalidateOnlyGenerated:S,resolvedPathname:A,clientReferenceManifest:O,serverActionsManifest:_}=R,k=(0,s.normalizeAppPath)(m),T=!!(P.dynamicRoutes[k]||P.routes[A]),q=async()=>((null==b?void 0:b.render404)?await b.render404(e,t,E,!1):t.end("This page could not be found"),null);if(T&&!j){let e=!!P.routes[A],t=P.dynamicRoutes[k];if(t&&!1===t.fallback&&!e){if(D.experimental.adapterPath)return await q();throw new x.NoFallbackError}}let F=null;!T||C.isDev||j||(F="/index"===(F=A)?"/":F);let I=!0===C.isDev||!T,U=T&&!I;_&&O&&(0,o.setManifestsSingleton)({page:m,clientReferenceManifest:O,serverActionsManifest:_});let H=e.method||"GET",M=(0,n.getTracer)(),K=M.getActiveScopeSpan(),$={params:v,prerenderManifest:P,renderOpts:{experimental:{authInterrupts:!!D.experimental.authInterrupts},cacheComponents:!!D.cacheComponents,supportsDynamicResponse:I,incrementalCache:(0,i.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:D.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,i)=>C.onRequestError(e,t,a,i,b)},sharedContext:{buildId:y}},J=new l.NodeNextRequest(e),B=new l.NodeNextResponse(t),G=u.NextRequestAdapter.fromNodeNextRequest(J,(0,u.signalFromNodeResponse)(t));try{let o=async e=>C.handle(G,$).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=M.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${H} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t)}else e.updateName(`${H} ${m}`)}),s=!!(0,i.getRequestMeta)(e,"minimalMode"),l=async i=>{var n,l;let u=async({previousCacheEntry:r})=>{try{if(!s&&N&&S&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let n=await o(i);e.fetchMetrics=$.renderOpts.fetchMetrics;let l=$.renderOpts.pendingWaitUntil;l&&a.waitUntil&&(a.waitUntil(l),l=void 0);let u=$.renderOpts.collectedTags;if(!T)return await (0,p.sendResponse)(J,B,n,$.renderOpts.pendingWaitUntil),null;{let e=await n.blob(),t=(0,f.toNodeOutgoingHttpHeaders)(n.headers);u&&(t[g.NEXT_CACHE_TAGS_HEADER]=u),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==$.renderOpts.collectedRevalidate&&!($.renderOpts.collectedRevalidate>=g.INFINITE_CACHE)&&$.renderOpts.collectedRevalidate,a=void 0===$.renderOpts.collectedExpire||$.renderOpts.collectedExpire>=g.INFINITE_CACHE?void 0:$.renderOpts.collectedExpire;return{value:{kind:w.CachedRouteKind.APP_ROUTE,status:n.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await C.onRequestError(e,t,{routerKind:"App Router",routePath:m,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:N})},!1,b),t}},d=await C.handleResponse({req:e,nextConfig:D,cacheKey:F,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:P,isRoutePPREnabled:!1,isOnDemandRevalidate:N,revalidateOnlyGenerated:S,responseGenerator:u,waitUntil:a.waitUntil,isMinimalMode:s});if(!T)return null;if((null==d||null==(n=d.value)?void 0:n.kind)!==w.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(l=d.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});s||t.setHeader("x-nextjs-cache",N?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),j&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let x=(0,f.fromNodeOutgoingHttpHeaders)(d.value.headers);return s&&T||x.delete(g.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||x.get("Cache-Control")||x.set("Cache-Control",(0,h.getCacheControlHeader)(d.cacheControl)),await (0,p.sendResponse)(J,B,new Response(d.value.body,{headers:x,status:d.value.status||200})),null};K?await l(K):await M.withPropagatedContext(e.headers,()=>M.trace(d.BaseServerSpan.handleRequest,{spanName:`${H} ${m}`,kind:n.SpanKind.SERVER,attributes:{"http.method":H,"http.target":e.url}},l))}catch(t){if(t instanceof x.NoFallbackError||await C.onRequestError(e,t,{routerKind:"App Router",routePath:k,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:N})},!1,b),T)throw t;return await (0,p.sendResponse)(J,B,new Response(null,{status:500})),null}}e.s(["handler",()=>N,"patchFetch",()=>b,"routeModule",()=>C,"serverHooks",()=>P,"workAsyncStorage",()=>E,"workUnitAsyncStorage",()=>j],7658)}];
|
|
1
|
+
module.exports=[24868,(e,t,r)=>{t.exports=e.x("fs/promises",()=>require("fs/promises"))},66823,e=>{"use strict";var t=e.i(14747);function r(){return process.env.USER_WORKING_DIR?process.env.USER_WORKING_DIR:t.default.join(process.cwd(),"..","..")}e.s(["getRootPath",()=>r])},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},79615,90088,e=>{"use strict";var t=e.i(24868),r=e.i(14747);function a(e){return JSON.parse(65279===e.charCodeAt(0)?e.slice(1):e)}e.s(["parseJSON",()=>a],90088);class n{configDocDir=".config_doc";rootPath;constructor(e){this.rootPath=e}async ensureConfigDocDir(){let e=r.default.join(this.rootPath,this.configDocDir),a=r.default.join(e,"metadata"),n=r.default.join(a,"docs");try{await t.default.access(e)}catch{await t.default.mkdir(e,{recursive:!0})}await t.default.mkdir(n,{recursive:!0})}async loadProjectSettings(){let e=r.default.join(this.rootPath,this.configDocDir,"project_settings.json");try{let r=await t.default.readFile(e,"utf-8");return a(r)}catch{return null}}async saveProjectSettings(e){await this.ensureConfigDocDir();let a=r.default.join(this.rootPath,this.configDocDir,"project_settings.json");await t.default.writeFile(a,JSON.stringify(e,null,2),"utf-8")}async loadConfigFiles(){let e=r.default.join(this.rootPath,this.configDocDir,"metadata","config_files.json");try{let r=await t.default.readFile(e,"utf-8");return a(r)}catch{return null}}async saveConfigFiles(e){await this.ensureConfigDocDir();let a=r.default.join(this.rootPath,this.configDocDir,"metadata","config_files.json");await t.default.writeFile(a,JSON.stringify(e,null,2),"utf-8")}async loadConfigFile(e){let n=r.default.isAbsolute(e)?r.default.normalize(e):r.default.join(this.rootPath,e);return a(await t.default.readFile(n,"utf-8"))}async loadConfigDocs(e){let n=r.default.join(this.rootPath,this.configDocDir,"metadata","docs",e);try{let e=await t.default.readFile(n,"utf-8");return a(e)}catch{return null}}async saveConfigDocs(e,a){await this.ensureConfigDocDir();let n=r.default.join(this.rootPath,this.configDocDir,"metadata","docs",e),i=r.default.dirname(n);await t.default.mkdir(i,{recursive:!0}),await t.default.writeFile(n,JSON.stringify(a,null,2),"utf-8")}async browseDirectory(e){let a=r.default.isAbsolute(e)?r.default.normalize(e):r.default.join(this.rootPath,e);return(await t.default.readdir(a,{withFileTypes:!0})).filter(e=>!e.name.startsWith(".")).map(e=>{let t=r.default.join(a,e.name);return{name:e.name,path:t,type:e.isDirectory()?"directory":"file",extension:e.isFile()?r.default.extname(e.name):void 0}}).sort((e,t)=>e.type!==t.type?"directory"===e.type?-1:1:e.name.localeCompare(t.name))}async deleteConfigDocs(e){let a=r.default.join(this.rootPath,this.configDocDir,"metadata","docs",e);try{await t.default.unlink(a)}catch{console.log(`Docs file not found: ${e}`)}}}e.s(["FileSystemService",()=>n],79615)},7658,e=>{"use strict";var t=e.i(74930),r=e.i(76450),a=e.i(79136),n=e.i(34106),i=e.i(93251),o=e.i(74024),s=e.i(31830),l=e.i(5105),u=e.i(43062),d=e.i(70363),c=e.i(23576),p=e.i(89474),f=e.i(13448),h=e.i(46039),g=e.i(18972),x=e.i(93695);e.i(93699);var w=e.i(58282),m=e.i(9280),R=e.i(79615),y=e.i(66823);async function v(e){try{let{directory:t}=await e.json();if(!t)return m.NextResponse.json({success:!1,error:"directory is required"},{status:400});let r=(0,y.getRootPath)(),a=new R.FileSystemService(r),n=await a.browseDirectory(t);return m.NextResponse.json({success:!0,data:{currentPath:t,items:n}})}catch(e){return console.error("API Error:",e),m.NextResponse.json({success:!1,error:e instanceof Error?e.message:"Unknown error"},{status:500})}}e.s(["POST",()=>v],62287);var D=e.i(62287);let C=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/files/browse/route",pathname:"/api/files/browse",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/packages/web/app/api/files/browse/route.ts",nextConfigOutput:"standalone",userland:D}),{workAsyncStorage:E,workUnitAsyncStorage:j,serverHooks:P}=C;function b(){return(0,a.patchFetch)({workAsyncStorage:E,workUnitAsyncStorage:j})}async function A(e,t,a){C.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let m="/api/files/browse/route";m=m.replace(/\/index$/,"")||"/";let R=await C.prepare(e,t,{srcPage:m,multiZoneDraftMode:!1});if(!R)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:y,params:v,nextConfig:D,parsedUrl:E,isDraftMode:j,prerenderManifest:P,routerServerContext:b,isOnDemandRevalidate:A,revalidateOnlyGenerated:N,resolvedPathname:S,clientReferenceManifest:O,serverActionsManifest:_}=R,k=(0,s.normalizeAppPath)(m),T=!!(P.dynamicRoutes[k]||P.routes[S]),q=async()=>((null==b?void 0:b.render404)?await b.render404(e,t,E,!1):t.end("This page could not be found"),null);if(T&&!j){let e=!!P.routes[S],t=P.dynamicRoutes[k];if(t&&!1===t.fallback&&!e){if(D.experimental.adapterPath)return await q();throw new x.NoFallbackError}}let F=null;!T||C.isDev||j||(F="/index"===(F=S)?"/":F);let I=!0===C.isDev||!T,U=T&&!I;_&&O&&(0,o.setManifestsSingleton)({page:m,clientReferenceManifest:O,serverActionsManifest:_});let H=e.method||"GET",M=(0,i.getTracer)(),K=M.getActiveScopeSpan(),$={params:v,prerenderManifest:P,renderOpts:{experimental:{authInterrupts:!!D.experimental.authInterrupts},cacheComponents:!!D.cacheComponents,supportsDynamicResponse:I,incrementalCache:(0,n.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:D.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>C.onRequestError(e,t,a,n,b)},sharedContext:{buildId:y}},B=new l.NodeNextRequest(e),G=new l.NodeNextResponse(t),J=u.NextRequestAdapter.fromNodeNextRequest(B,(0,u.signalFromNodeResponse)(t));try{let o=async e=>C.handle(J,$).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=M.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${H} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t)}else e.updateName(`${H} ${m}`)}),s=!!(0,n.getRequestMeta)(e,"minimalMode"),l=async n=>{var i,l;let u=async({previousCacheEntry:r})=>{try{if(!s&&A&&N&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let i=await o(n);e.fetchMetrics=$.renderOpts.fetchMetrics;let l=$.renderOpts.pendingWaitUntil;l&&a.waitUntil&&(a.waitUntil(l),l=void 0);let u=$.renderOpts.collectedTags;if(!T)return await (0,p.sendResponse)(B,G,i,$.renderOpts.pendingWaitUntil),null;{let e=await i.blob(),t=(0,f.toNodeOutgoingHttpHeaders)(i.headers);u&&(t[g.NEXT_CACHE_TAGS_HEADER]=u),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==$.renderOpts.collectedRevalidate&&!($.renderOpts.collectedRevalidate>=g.INFINITE_CACHE)&&$.renderOpts.collectedRevalidate,a=void 0===$.renderOpts.collectedExpire||$.renderOpts.collectedExpire>=g.INFINITE_CACHE?void 0:$.renderOpts.collectedExpire;return{value:{kind:w.CachedRouteKind.APP_ROUTE,status:i.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await C.onRequestError(e,t,{routerKind:"App Router",routePath:m,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:A})},!1,b),t}},d=await C.handleResponse({req:e,nextConfig:D,cacheKey:F,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:P,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:N,responseGenerator:u,waitUntil:a.waitUntil,isMinimalMode:s});if(!T)return null;if((null==d||null==(i=d.value)?void 0:i.kind)!==w.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(l=d.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});s||t.setHeader("x-nextjs-cache",A?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),j&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let x=(0,f.fromNodeOutgoingHttpHeaders)(d.value.headers);return s&&T||x.delete(g.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||x.get("Cache-Control")||x.set("Cache-Control",(0,h.getCacheControlHeader)(d.cacheControl)),await (0,p.sendResponse)(B,G,new Response(d.value.body,{headers:x,status:d.value.status||200})),null};K?await l(K):await M.withPropagatedContext(e.headers,()=>M.trace(d.BaseServerSpan.handleRequest,{spanName:`${H} ${m}`,kind:i.SpanKind.SERVER,attributes:{"http.method":H,"http.target":e.url}},l))}catch(t){if(t instanceof x.NoFallbackError||await C.onRequestError(e,t,{routerKind:"App Router",routePath:k,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:A})},!1,b),T)throw t;return await (0,p.sendResponse)(B,G,new Response(null,{status:500})),null}}e.s(["handler",()=>A,"patchFetch",()=>b,"routeModule",()=>C,"serverHooks",()=>P,"workAsyncStorage",()=>E,"workUnitAsyncStorage",()=>j],7658)}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=%5Broot-of-the-server%5D__a5322c08._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[24868,(e,t,a)=>{t.exports=e.x("fs/promises",()=>require("fs/promises"))},66823,e=>{"use strict";var t=e.i(14747);function a(){return process.env.USER_WORKING_DIR?process.env.USER_WORKING_DIR:t.default.join(process.cwd(),"..","..")}e.s(["getRootPath",()=>a])},93695,(e,t,a)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},32319,(e,t,a)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,a)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},18622,(e,t,a)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,a)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},70406,(e,t,a)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},14747,(e,t,a)=>{t.exports=e.x("path",()=>require("path"))},79615,e=>{"use strict";var t=e.i(24868),a=e.i(14747);class r{configDocDir=".config_doc";rootPath;constructor(e){this.rootPath=e}async ensureConfigDocDir(){let e=a.default.join(this.rootPath,this.configDocDir),r=a.default.join(e,"metadata"),i=a.default.join(r,"docs");try{await t.default.access(e)}catch{await t.default.mkdir(e,{recursive:!0})}await t.default.mkdir(i,{recursive:!0})}async loadProjectSettings(){let e=a.default.join(this.rootPath,this.configDocDir,"project_settings.json");try{let a=await t.default.readFile(e,"utf-8");return JSON.parse(a)}catch{return null}}async saveProjectSettings(e){await this.ensureConfigDocDir();let r=a.default.join(this.rootPath,this.configDocDir,"project_settings.json");await t.default.writeFile(r,JSON.stringify(e,null,2),"utf-8")}async loadConfigFiles(){let e=a.default.join(this.rootPath,this.configDocDir,"metadata","config_files.json");try{let a=await t.default.readFile(e,"utf-8");return JSON.parse(a)}catch{return null}}async saveConfigFiles(e){await this.ensureConfigDocDir();let r=a.default.join(this.rootPath,this.configDocDir,"metadata","config_files.json");await t.default.writeFile(r,JSON.stringify(e,null,2),"utf-8")}async loadConfigFile(e){let r=a.default.isAbsolute(e)?a.default.normalize(e):a.default.join(this.rootPath,e);return JSON.parse(await t.default.readFile(r,"utf-8"))}async loadConfigDocs(e){let r=a.default.join(this.rootPath,this.configDocDir,"metadata","docs",e);try{let e=await t.default.readFile(r,"utf-8");return JSON.parse(e)}catch{return null}}async saveConfigDocs(e,r){await this.ensureConfigDocDir();let i=a.default.join(this.rootPath,this.configDocDir,"metadata","docs",e),o=a.default.dirname(i);await t.default.mkdir(o,{recursive:!0}),await t.default.writeFile(i,JSON.stringify(r,null,2),"utf-8")}async browseDirectory(e){let r=a.default.isAbsolute(e)?a.default.normalize(e):a.default.join(this.rootPath,e);return(await t.default.readdir(r,{withFileTypes:!0})).filter(e=>!e.name.startsWith(".")).map(e=>{let t=a.default.join(r,e.name);return{name:e.name,path:t,type:e.isDirectory()?"directory":"file",extension:e.isFile()?a.default.extname(e.name):void 0}}).sort((e,t)=>e.type!==t.type?"directory"===e.type?-1:1:e.name.localeCompare(t.name))}async deleteConfigDocs(e){let r=a.default.join(this.rootPath,this.configDocDir,"metadata","docs",e);try{await t.default.unlink(r)}catch{console.log(`Docs file not found: ${e}`)}}}e.s(["FileSystemService",()=>r])},51958,e=>{"use strict";var t=e.i(14747);class a{fs;constructor(e){this.fs=e}async savePropertyDoc(e,t,a){let r=this.getDocsFileName(e),i=this.toRelativePath(e),o=await this.fs.loadConfigDocs(r);o||(o={configFilePath:i,lastModified:new Date().toISOString(),properties:{}}),o.properties[t]=a,o.lastModified=new Date().toISOString(),o.configFilePath=i,await this.fs.saveConfigDocs(r,o)}async loadAllDocs(e){let t=this.getDocsFileName(e),a=await this.fs.loadConfigDocs(t),r=this.toRelativePath(e);return a||{configFilePath:r,lastModified:new Date().toISOString(),properties:{}}}getDocsFileName(e){let t=this.toRelativePath(e),a=t.split(/[/\\]/).filter(e=>e&&"."!==e);return a.length<=1?(a[0]||"config.json").replace(".json",".docs.json"):t.replace(/\.\./g,"__").replace(/[/\\]/g,"_").replace(/:/g,"").replace(".json",".docs.json")}toRelativePath(e){return t.default.isAbsolute(e)?t.default.relative(this.fs.rootPath,e):e}}e.s(["StorageService",()=>a])},95212,e=>{"use strict";var t=e.i(74930),a=e.i(76450),r=e.i(79136),i=e.i(34106),o=e.i(93251),n=e.i(74024),s=e.i(31830),l=e.i(5105),c=e.i(43062),d=e.i(70363),u=e.i(23576),p=e.i(89474),f=e.i(13448),h=e.i(46039),g=e.i(18972),v=e.i(93695);e.i(93699);var w=e.i(58282),x=e.i(9280),m=e.i(79615),R=e.i(51958),y=e.i(66823);async function D(e){try{let{filePath:t}=await e.json();if(!t)return x.NextResponse.json({success:!1,error:"filePath is required"},{status:400});let a=(0,y.getRootPath)(),r=new m.FileSystemService(a),i=new R.StorageService(r);await r.ensureConfigDocDir();let o=await r.loadConfigFile(t),n=await i.loadAllDocs(t);return x.NextResponse.json({success:!0,data:{configData:o,docs:n}})}catch(e){return console.error("API Error:",e),x.NextResponse.json({success:!1,error:e instanceof Error?e.message:"Unknown error"},{status:500})}}e.s(["POST",()=>D],58829);var C=e.i(58829);let P=new t.AppRouteRouteModule({definition:{kind:a.RouteKind.APP_ROUTE,page:"/api/config/load/route",pathname:"/api/config/load",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/packages/web/app/api/config/load/route.ts",nextConfigOutput:"standalone",userland:C}),{workAsyncStorage:j,workUnitAsyncStorage:E,serverHooks:S}=P;function N(){return(0,r.patchFetch)({workAsyncStorage:j,workUnitAsyncStorage:E})}async function A(e,t,r){P.isDev&&(0,i.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let x="/api/config/load/route";x=x.replace(/\/index$/,"")||"/";let m=await P.prepare(e,t,{srcPage:x,multiZoneDraftMode:!1});if(!m)return t.statusCode=400,t.end("Bad Request"),null==r.waitUntil||r.waitUntil.call(r,Promise.resolve()),null;let{buildId:R,params:y,nextConfig:D,parsedUrl:C,isDraftMode:j,prerenderManifest:E,routerServerContext:S,isOnDemandRevalidate:N,revalidateOnlyGenerated:A,resolvedPathname:O,clientReferenceManifest:b,serverActionsManifest:_}=m,F=(0,s.normalizeAppPath)(x),k=!!(E.dynamicRoutes[F]||E.routes[O]),T=async()=>((null==S?void 0:S.render404)?await S.render404(e,t,C,!1):t.end("This page could not be found"),null);if(k&&!j){let e=!!E.routes[O],t=E.dynamicRoutes[F];if(t&&!1===t.fallback&&!e){if(D.experimental.adapterPath)return await T();throw new v.NoFallbackError}}let q=null;!k||P.isDev||j||(q="/index"===(q=O)?"/":q);let I=!0===P.isDev||!k,U=k&&!I;_&&b&&(0,n.setManifestsSingleton)({page:x,clientReferenceManifest:b,serverActionsManifest:_});let H=e.method||"GET",M=(0,o.getTracer)(),K=M.getActiveScopeSpan(),$={params:y,prerenderManifest:E,renderOpts:{experimental:{authInterrupts:!!D.experimental.authInterrupts},cacheComponents:!!D.cacheComponents,supportsDynamicResponse:I,incrementalCache:(0,i.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:D.cacheLife,waitUntil:r.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,a,r,i)=>P.onRequestError(e,t,r,i,S)},sharedContext:{buildId:R}},J=new l.NodeNextRequest(e),B=new l.NodeNextResponse(t),G=c.NextRequestAdapter.fromNodeNextRequest(J,(0,c.signalFromNodeResponse)(t));try{let n=async e=>P.handle(G,$).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let a=M.getRootSpanAttributes();if(!a)return;if(a.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${a.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let r=a.get("next.route");if(r){let t=`${H} ${r}`;e.setAttributes({"next.route":r,"http.route":r,"next.span_name":t}),e.updateName(t)}else e.updateName(`${H} ${x}`)}),s=!!(0,i.getRequestMeta)(e,"minimalMode"),l=async i=>{var o,l;let c=async({previousCacheEntry:a})=>{try{if(!s&&N&&A&&!a)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let o=await n(i);e.fetchMetrics=$.renderOpts.fetchMetrics;let l=$.renderOpts.pendingWaitUntil;l&&r.waitUntil&&(r.waitUntil(l),l=void 0);let c=$.renderOpts.collectedTags;if(!k)return await (0,p.sendResponse)(J,B,o,$.renderOpts.pendingWaitUntil),null;{let e=await o.blob(),t=(0,f.toNodeOutgoingHttpHeaders)(o.headers);c&&(t[g.NEXT_CACHE_TAGS_HEADER]=c),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let a=void 0!==$.renderOpts.collectedRevalidate&&!($.renderOpts.collectedRevalidate>=g.INFINITE_CACHE)&&$.renderOpts.collectedRevalidate,r=void 0===$.renderOpts.collectedExpire||$.renderOpts.collectedExpire>=g.INFINITE_CACHE?void 0:$.renderOpts.collectedExpire;return{value:{kind:w.CachedRouteKind.APP_ROUTE,status:o.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:a,expire:r}}}}catch(t){throw(null==a?void 0:a.isStale)&&await P.onRequestError(e,t,{routerKind:"App Router",routePath:x,routeType:"route",revalidateReason:(0,u.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:N})},!1,S),t}},d=await P.handleResponse({req:e,nextConfig:D,cacheKey:q,routeKind:a.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:E,isRoutePPREnabled:!1,isOnDemandRevalidate:N,revalidateOnlyGenerated:A,responseGenerator:c,waitUntil:r.waitUntil,isMinimalMode:s});if(!k)return null;if((null==d||null==(o=d.value)?void 0:o.kind)!==w.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(l=d.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});s||t.setHeader("x-nextjs-cache",N?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),j&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let v=(0,f.fromNodeOutgoingHttpHeaders)(d.value.headers);return s&&k||v.delete(g.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||v.get("Cache-Control")||v.set("Cache-Control",(0,h.getCacheControlHeader)(d.cacheControl)),await (0,p.sendResponse)(J,B,new Response(d.value.body,{headers:v,status:d.value.status||200})),null};K?await l(K):await M.withPropagatedContext(e.headers,()=>M.trace(d.BaseServerSpan.handleRequest,{spanName:`${H} ${x}`,kind:o.SpanKind.SERVER,attributes:{"http.method":H,"http.target":e.url}},l))}catch(t){if(t instanceof v.NoFallbackError||await P.onRequestError(e,t,{routerKind:"App Router",routePath:F,routeType:"route",revalidateReason:(0,u.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:N})},!1,S),k)throw t;return await (0,p.sendResponse)(J,B,new Response(null,{status:500})),null}}e.s(["handler",()=>A,"patchFetch",()=>N,"routeModule",()=>P,"serverHooks",()=>S,"workAsyncStorage",()=>j,"workUnitAsyncStorage",()=>E],95212)}];
|
|
1
|
+
module.exports=[24868,(e,t,a)=>{t.exports=e.x("fs/promises",()=>require("fs/promises"))},66823,e=>{"use strict";var t=e.i(14747);function a(){return process.env.USER_WORKING_DIR?process.env.USER_WORKING_DIR:t.default.join(process.cwd(),"..","..")}e.s(["getRootPath",()=>a])},93695,(e,t,a)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},32319,(e,t,a)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,a)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},18622,(e,t,a)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,a)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},70406,(e,t,a)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},14747,(e,t,a)=>{t.exports=e.x("path",()=>require("path"))},79615,90088,e=>{"use strict";var t=e.i(24868),a=e.i(14747);function r(e){return JSON.parse(65279===e.charCodeAt(0)?e.slice(1):e)}e.s(["parseJSON",()=>r],90088);class i{configDocDir=".config_doc";rootPath;constructor(e){this.rootPath=e}async ensureConfigDocDir(){let e=a.default.join(this.rootPath,this.configDocDir),r=a.default.join(e,"metadata"),i=a.default.join(r,"docs");try{await t.default.access(e)}catch{await t.default.mkdir(e,{recursive:!0})}await t.default.mkdir(i,{recursive:!0})}async loadProjectSettings(){let e=a.default.join(this.rootPath,this.configDocDir,"project_settings.json");try{let a=await t.default.readFile(e,"utf-8");return r(a)}catch{return null}}async saveProjectSettings(e){await this.ensureConfigDocDir();let r=a.default.join(this.rootPath,this.configDocDir,"project_settings.json");await t.default.writeFile(r,JSON.stringify(e,null,2),"utf-8")}async loadConfigFiles(){let e=a.default.join(this.rootPath,this.configDocDir,"metadata","config_files.json");try{let a=await t.default.readFile(e,"utf-8");return r(a)}catch{return null}}async saveConfigFiles(e){await this.ensureConfigDocDir();let r=a.default.join(this.rootPath,this.configDocDir,"metadata","config_files.json");await t.default.writeFile(r,JSON.stringify(e,null,2),"utf-8")}async loadConfigFile(e){let i=a.default.isAbsolute(e)?a.default.normalize(e):a.default.join(this.rootPath,e);return r(await t.default.readFile(i,"utf-8"))}async loadConfigDocs(e){let i=a.default.join(this.rootPath,this.configDocDir,"metadata","docs",e);try{let e=await t.default.readFile(i,"utf-8");return r(e)}catch{return null}}async saveConfigDocs(e,r){await this.ensureConfigDocDir();let i=a.default.join(this.rootPath,this.configDocDir,"metadata","docs",e),o=a.default.dirname(i);await t.default.mkdir(o,{recursive:!0}),await t.default.writeFile(i,JSON.stringify(r,null,2),"utf-8")}async browseDirectory(e){let r=a.default.isAbsolute(e)?a.default.normalize(e):a.default.join(this.rootPath,e);return(await t.default.readdir(r,{withFileTypes:!0})).filter(e=>!e.name.startsWith(".")).map(e=>{let t=a.default.join(r,e.name);return{name:e.name,path:t,type:e.isDirectory()?"directory":"file",extension:e.isFile()?a.default.extname(e.name):void 0}}).sort((e,t)=>e.type!==t.type?"directory"===e.type?-1:1:e.name.localeCompare(t.name))}async deleteConfigDocs(e){let r=a.default.join(this.rootPath,this.configDocDir,"metadata","docs",e);try{await t.default.unlink(r)}catch{console.log(`Docs file not found: ${e}`)}}}e.s(["FileSystemService",()=>i],79615)},51958,e=>{"use strict";var t=e.i(14747);class a{fs;constructor(e){this.fs=e}async savePropertyDoc(e,t,a){let r=this.getDocsFileName(e),i=this.toRelativePath(e),o=await this.fs.loadConfigDocs(r);o||(o={configFilePath:i,lastModified:new Date().toISOString(),properties:{}}),o.properties[t]=a,o.lastModified=new Date().toISOString(),o.configFilePath=i,await this.fs.saveConfigDocs(r,o)}async loadAllDocs(e){let t=this.getDocsFileName(e),a=await this.fs.loadConfigDocs(t),r=this.toRelativePath(e);return a||{configFilePath:r,lastModified:new Date().toISOString(),properties:{}}}getDocsFileName(e){let t=this.toRelativePath(e),a=t.split(/[/\\]/).filter(e=>e&&"."!==e);return a.length<=1?(a[0]||"config.json").replace(".json",".docs.json"):t.replace(/\.\./g,"__").replace(/[/\\]/g,"_").replace(/:/g,"").replace(".json",".docs.json")}toRelativePath(e){return t.default.isAbsolute(e)?t.default.relative(this.fs.rootPath,e):e}}e.s(["StorageService",()=>a])},95212,e=>{"use strict";var t=e.i(74930),a=e.i(76450),r=e.i(79136),i=e.i(34106),o=e.i(93251),n=e.i(74024),s=e.i(31830),l=e.i(5105),c=e.i(43062),d=e.i(70363),u=e.i(23576),p=e.i(89474),f=e.i(13448),h=e.i(46039),g=e.i(18972),v=e.i(93695);e.i(93699);var w=e.i(58282),x=e.i(9280),m=e.i(79615),R=e.i(51958),y=e.i(66823);async function D(e){try{let{filePath:t}=await e.json();if(!t)return x.NextResponse.json({success:!1,error:"filePath is required"},{status:400});let a=(0,y.getRootPath)(),r=new m.FileSystemService(a),i=new R.StorageService(r);await r.ensureConfigDocDir();let o=await r.loadConfigFile(t),n=await i.loadAllDocs(t);return x.NextResponse.json({success:!0,data:{configData:o,docs:n}})}catch(e){return console.error("API Error:",e),x.NextResponse.json({success:!1,error:e instanceof Error?e.message:"Unknown error"},{status:500})}}e.s(["POST",()=>D],58829);var C=e.i(58829);let P=new t.AppRouteRouteModule({definition:{kind:a.RouteKind.APP_ROUTE,page:"/api/config/load/route",pathname:"/api/config/load",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/packages/web/app/api/config/load/route.ts",nextConfigOutput:"standalone",userland:C}),{workAsyncStorage:j,workUnitAsyncStorage:E,serverHooks:S}=P;function A(){return(0,r.patchFetch)({workAsyncStorage:j,workUnitAsyncStorage:E})}async function N(e,t,r){P.isDev&&(0,i.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let x="/api/config/load/route";x=x.replace(/\/index$/,"")||"/";let m=await P.prepare(e,t,{srcPage:x,multiZoneDraftMode:!1});if(!m)return t.statusCode=400,t.end("Bad Request"),null==r.waitUntil||r.waitUntil.call(r,Promise.resolve()),null;let{buildId:R,params:y,nextConfig:D,parsedUrl:C,isDraftMode:j,prerenderManifest:E,routerServerContext:S,isOnDemandRevalidate:A,revalidateOnlyGenerated:N,resolvedPathname:b,clientReferenceManifest:O,serverActionsManifest:_}=m,F=(0,s.normalizeAppPath)(x),k=!!(E.dynamicRoutes[F]||E.routes[b]),T=async()=>((null==S?void 0:S.render404)?await S.render404(e,t,C,!1):t.end("This page could not be found"),null);if(k&&!j){let e=!!E.routes[b],t=E.dynamicRoutes[F];if(t&&!1===t.fallback&&!e){if(D.experimental.adapterPath)return await T();throw new v.NoFallbackError}}let q=null;!k||P.isDev||j||(q="/index"===(q=b)?"/":q);let I=!0===P.isDev||!k,U=k&&!I;_&&O&&(0,n.setManifestsSingleton)({page:x,clientReferenceManifest:O,serverActionsManifest:_});let H=e.method||"GET",M=(0,o.getTracer)(),K=M.getActiveScopeSpan(),$={params:y,prerenderManifest:E,renderOpts:{experimental:{authInterrupts:!!D.experimental.authInterrupts},cacheComponents:!!D.cacheComponents,supportsDynamicResponse:I,incrementalCache:(0,i.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:D.cacheLife,waitUntil:r.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,a,r,i)=>P.onRequestError(e,t,r,i,S)},sharedContext:{buildId:R}},B=new l.NodeNextRequest(e),G=new l.NodeNextResponse(t),J=c.NextRequestAdapter.fromNodeNextRequest(B,(0,c.signalFromNodeResponse)(t));try{let n=async e=>P.handle(J,$).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let a=M.getRootSpanAttributes();if(!a)return;if(a.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${a.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let r=a.get("next.route");if(r){let t=`${H} ${r}`;e.setAttributes({"next.route":r,"http.route":r,"next.span_name":t}),e.updateName(t)}else e.updateName(`${H} ${x}`)}),s=!!(0,i.getRequestMeta)(e,"minimalMode"),l=async i=>{var o,l;let c=async({previousCacheEntry:a})=>{try{if(!s&&A&&N&&!a)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let o=await n(i);e.fetchMetrics=$.renderOpts.fetchMetrics;let l=$.renderOpts.pendingWaitUntil;l&&r.waitUntil&&(r.waitUntil(l),l=void 0);let c=$.renderOpts.collectedTags;if(!k)return await (0,p.sendResponse)(B,G,o,$.renderOpts.pendingWaitUntil),null;{let e=await o.blob(),t=(0,f.toNodeOutgoingHttpHeaders)(o.headers);c&&(t[g.NEXT_CACHE_TAGS_HEADER]=c),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let a=void 0!==$.renderOpts.collectedRevalidate&&!($.renderOpts.collectedRevalidate>=g.INFINITE_CACHE)&&$.renderOpts.collectedRevalidate,r=void 0===$.renderOpts.collectedExpire||$.renderOpts.collectedExpire>=g.INFINITE_CACHE?void 0:$.renderOpts.collectedExpire;return{value:{kind:w.CachedRouteKind.APP_ROUTE,status:o.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:a,expire:r}}}}catch(t){throw(null==a?void 0:a.isStale)&&await P.onRequestError(e,t,{routerKind:"App Router",routePath:x,routeType:"route",revalidateReason:(0,u.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:A})},!1,S),t}},d=await P.handleResponse({req:e,nextConfig:D,cacheKey:q,routeKind:a.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:E,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:N,responseGenerator:c,waitUntil:r.waitUntil,isMinimalMode:s});if(!k)return null;if((null==d||null==(o=d.value)?void 0:o.kind)!==w.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(l=d.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});s||t.setHeader("x-nextjs-cache",A?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),j&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let v=(0,f.fromNodeOutgoingHttpHeaders)(d.value.headers);return s&&k||v.delete(g.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||v.get("Cache-Control")||v.set("Cache-Control",(0,h.getCacheControlHeader)(d.cacheControl)),await (0,p.sendResponse)(B,G,new Response(d.value.body,{headers:v,status:d.value.status||200})),null};K?await l(K):await M.withPropagatedContext(e.headers,()=>M.trace(d.BaseServerSpan.handleRequest,{spanName:`${H} ${x}`,kind:o.SpanKind.SERVER,attributes:{"http.method":H,"http.target":e.url}},l))}catch(t){if(t instanceof v.NoFallbackError||await P.onRequestError(e,t,{routerKind:"App Router",routePath:F,routeType:"route",revalidateReason:(0,u.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:A})},!1,S),k)throw t;return await (0,p.sendResponse)(B,G,new Response(null,{status:500})),null}}e.s(["handler",()=>N,"patchFetch",()=>A,"routeModule",()=>P,"serverHooks",()=>S,"workAsyncStorage",()=>j,"workUnitAsyncStorage",()=>E],95212)}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=%5Broot-of-the-server%5D__a67d7570._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[66823,e=>{"use strict";var t=e.i(14747);function r(){return process.env.USER_WORKING_DIR?process.env.USER_WORKING_DIR:t.default.join(process.cwd(),"..","..")}e.s(["getRootPath",()=>r])},24868,(e,t,r)=>{t.exports=e.x("fs/promises",()=>require("fs/promises"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},79615,e=>{"use strict";var t=e.i(24868),r=e.i(14747);class a{configDocDir=".config_doc";rootPath;constructor(e){this.rootPath=e}async ensureConfigDocDir(){let e=r.default.join(this.rootPath,this.configDocDir),a=r.default.join(e,"metadata"),i=r.default.join(a,"docs");try{await t.default.access(e)}catch{await t.default.mkdir(e,{recursive:!0})}await t.default.mkdir(i,{recursive:!0})}async loadProjectSettings(){let e=r.default.join(this.rootPath,this.configDocDir,"project_settings.json");try{let r=await t.default.readFile(e,"utf-8");return JSON.parse(r)}catch{return null}}async saveProjectSettings(e){await this.ensureConfigDocDir();let a=r.default.join(this.rootPath,this.configDocDir,"project_settings.json");await t.default.writeFile(a,JSON.stringify(e,null,2),"utf-8")}async loadConfigFiles(){let e=r.default.join(this.rootPath,this.configDocDir,"metadata","config_files.json");try{let r=await t.default.readFile(e,"utf-8");return JSON.parse(r)}catch{return null}}async saveConfigFiles(e){await this.ensureConfigDocDir();let a=r.default.join(this.rootPath,this.configDocDir,"metadata","config_files.json");await t.default.writeFile(a,JSON.stringify(e,null,2),"utf-8")}async loadConfigFile(e){let a=r.default.isAbsolute(e)?r.default.normalize(e):r.default.join(this.rootPath,e);return JSON.parse(await t.default.readFile(a,"utf-8"))}async loadConfigDocs(e){let a=r.default.join(this.rootPath,this.configDocDir,"metadata","docs",e);try{let e=await t.default.readFile(a,"utf-8");return JSON.parse(e)}catch{return null}}async saveConfigDocs(e,a){await this.ensureConfigDocDir();let i=r.default.join(this.rootPath,this.configDocDir,"metadata","docs",e),n=r.default.dirname(i);await t.default.mkdir(n,{recursive:!0}),await t.default.writeFile(i,JSON.stringify(a,null,2),"utf-8")}async browseDirectory(e){let a=r.default.isAbsolute(e)?r.default.normalize(e):r.default.join(this.rootPath,e);return(await t.default.readdir(a,{withFileTypes:!0})).filter(e=>!e.name.startsWith(".")).map(e=>{let t=r.default.join(a,e.name);return{name:e.name,path:t,type:e.isDirectory()?"directory":"file",extension:e.isFile()?r.default.extname(e.name):void 0}}).sort((e,t)=>e.type!==t.type?"directory"===e.type?-1:1:e.name.localeCompare(t.name))}async deleteConfigDocs(e){let a=r.default.join(this.rootPath,this.configDocDir,"metadata","docs",e);try{await t.default.unlink(a)}catch{console.log(`Docs file not found: ${e}`)}}}e.s(["FileSystemService",()=>a])},72071,e=>{"use strict";var t=e.i(74930),r=e.i(76450),a=e.i(79136),i=e.i(34106),n=e.i(93251),o=e.i(74024),s=e.i(31830),l=e.i(5105),u=e.i(43062),d=e.i(70363),c=e.i(23576),p=e.i(89474),f=e.i(13448),h=e.i(46039),g=e.i(18972),x=e.i(93695);e.i(93699);var m=e.i(58282),w=e.i(9280),v=e.i(66823),R=e.i(14747),y=e.i(24868),j=e.i(79615);let E=".user_settings.json",D=".config_doc";async function C(){try{let e,t=(0,v.getRootPath)(),r=new j.FileSystemService(t),a=R.default.join(t,D,E);try{let t=await y.default.readFile(a,"utf-8");e=JSON.parse(t)}catch{e={format:"html",autoExport:!0}}let i=await r.loadProjectSettings(),n=i?.export?.fileName||"config-doc",o={...e,fileName:n};return w.NextResponse.json({success:!0,data:o})}catch(e){return console.error("Failed to load export settings:",e),w.NextResponse.json({success:!1,error:e instanceof Error?e.message:"Unknown error"},{status:500})}}async function N(e){try{let t=(await e.json()).settings;if(!t||!t.format)return w.NextResponse.json({success:!1,error:"Invalid settings"},{status:400});let r=(0,v.getRootPath)(),a=new j.FileSystemService(r),i=R.default.join(r,D);await y.default.mkdir(i,{recursive:!0});let n={format:t.format,autoExport:t.autoExport,lastExportedAt:t.lastExportedAt},o=R.default.join(i,E);if(await y.default.writeFile(o,JSON.stringify(n,null,2),"utf-8"),void 0!==t.fileName){let e=await a.loadProjectSettings();if(e)e.export={...e.export,fileName:t.fileName},await a.saveProjectSettings(e);else{let e={projectName:R.default.basename(r),configFiles:[],export:{fileName:t.fileName}};await a.saveProjectSettings(e)}}return w.NextResponse.json({success:!0,message:"Export settings saved"})}catch(e){return console.error("Failed to save export settings:",e),w.NextResponse.json({success:!1,error:e instanceof Error?e.message:"Unknown error"},{status:500})}}e.s(["GET",()=>C,"POST",()=>N],73377);var P=e.i(73377);let S=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/export/settings/route",pathname:"/api/export/settings",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/packages/web/app/api/export/settings/route.ts",nextConfigOutput:"standalone",userland:P}),{workAsyncStorage:A,workUnitAsyncStorage:O,serverHooks:b}=S;function _(){return(0,a.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:O})}async function k(e,t,a){S.isDev&&(0,i.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let w="/api/export/settings/route";w=w.replace(/\/index$/,"")||"/";let v=await S.prepare(e,t,{srcPage:w,multiZoneDraftMode:!1});if(!v)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:R,params:y,nextConfig:j,parsedUrl:E,isDraftMode:D,prerenderManifest:C,routerServerContext:N,isOnDemandRevalidate:P,revalidateOnlyGenerated:A,resolvedPathname:O,clientReferenceManifest:b,serverActionsManifest:_}=v,k=(0,s.normalizeAppPath)(w),F=!!(C.dynamicRoutes[k]||C.routes[O]),T=async()=>((null==N?void 0:N.render404)?await N.render404(e,t,E,!1):t.end("This page could not be found"),null);if(F&&!D){let e=!!C.routes[O],t=C.dynamicRoutes[k];if(t&&!1===t.fallback&&!e){if(j.experimental.adapterPath)return await T();throw new x.NoFallbackError}}let q=null;!F||S.isDev||D||(q="/index"===(q=O)?"/":q);let I=!0===S.isDev||!F,U=F&&!I;_&&b&&(0,o.setManifestsSingleton)({page:w,clientReferenceManifest:b,serverActionsManifest:_});let H=e.method||"GET",M=(0,n.getTracer)(),K=M.getActiveScopeSpan(),$={params:y,prerenderManifest:C,renderOpts:{experimental:{authInterrupts:!!j.experimental.authInterrupts},cacheComponents:!!j.cacheComponents,supportsDynamicResponse:I,incrementalCache:(0,i.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:j.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,i)=>S.onRequestError(e,t,a,i,N)},sharedContext:{buildId:R}},J=new l.NodeNextRequest(e),G=new l.NodeNextResponse(t),B=u.NextRequestAdapter.fromNodeNextRequest(J,(0,u.signalFromNodeResponse)(t));try{let o=async e=>S.handle(B,$).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=M.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${H} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t)}else e.updateName(`${H} ${w}`)}),s=!!(0,i.getRequestMeta)(e,"minimalMode"),l=async i=>{var n,l;let u=async({previousCacheEntry:r})=>{try{if(!s&&P&&A&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let n=await o(i);e.fetchMetrics=$.renderOpts.fetchMetrics;let l=$.renderOpts.pendingWaitUntil;l&&a.waitUntil&&(a.waitUntil(l),l=void 0);let u=$.renderOpts.collectedTags;if(!F)return await (0,p.sendResponse)(J,G,n,$.renderOpts.pendingWaitUntil),null;{let e=await n.blob(),t=(0,f.toNodeOutgoingHttpHeaders)(n.headers);u&&(t[g.NEXT_CACHE_TAGS_HEADER]=u),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==$.renderOpts.collectedRevalidate&&!($.renderOpts.collectedRevalidate>=g.INFINITE_CACHE)&&$.renderOpts.collectedRevalidate,a=void 0===$.renderOpts.collectedExpire||$.renderOpts.collectedExpire>=g.INFINITE_CACHE?void 0:$.renderOpts.collectedExpire;return{value:{kind:m.CachedRouteKind.APP_ROUTE,status:n.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await S.onRequestError(e,t,{routerKind:"App Router",routePath:w,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:P})},!1,N),t}},d=await S.handleResponse({req:e,nextConfig:j,cacheKey:q,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:C,isRoutePPREnabled:!1,isOnDemandRevalidate:P,revalidateOnlyGenerated:A,responseGenerator:u,waitUntil:a.waitUntil,isMinimalMode:s});if(!F)return null;if((null==d||null==(n=d.value)?void 0:n.kind)!==m.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(l=d.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});s||t.setHeader("x-nextjs-cache",P?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),D&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let x=(0,f.fromNodeOutgoingHttpHeaders)(d.value.headers);return s&&F||x.delete(g.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||x.get("Cache-Control")||x.set("Cache-Control",(0,h.getCacheControlHeader)(d.cacheControl)),await (0,p.sendResponse)(J,G,new Response(d.value.body,{headers:x,status:d.value.status||200})),null};K?await l(K):await M.withPropagatedContext(e.headers,()=>M.trace(d.BaseServerSpan.handleRequest,{spanName:`${H} ${w}`,kind:n.SpanKind.SERVER,attributes:{"http.method":H,"http.target":e.url}},l))}catch(t){if(t instanceof x.NoFallbackError||await S.onRequestError(e,t,{routerKind:"App Router",routePath:k,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:P})},!1,N),F)throw t;return await (0,p.sendResponse)(J,G,new Response(null,{status:500})),null}}e.s(["handler",()=>k,"patchFetch",()=>_,"routeModule",()=>S,"serverHooks",()=>b,"workAsyncStorage",()=>A,"workUnitAsyncStorage",()=>O],72071)}];
|
|
1
|
+
module.exports=[66823,e=>{"use strict";var t=e.i(14747);function r(){return process.env.USER_WORKING_DIR?process.env.USER_WORKING_DIR:t.default.join(process.cwd(),"..","..")}e.s(["getRootPath",()=>r])},24868,(e,t,r)=>{t.exports=e.x("fs/promises",()=>require("fs/promises"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},79615,90088,e=>{"use strict";var t=e.i(24868),r=e.i(14747);function a(e){return JSON.parse(65279===e.charCodeAt(0)?e.slice(1):e)}e.s(["parseJSON",()=>a],90088);class i{configDocDir=".config_doc";rootPath;constructor(e){this.rootPath=e}async ensureConfigDocDir(){let e=r.default.join(this.rootPath,this.configDocDir),a=r.default.join(e,"metadata"),i=r.default.join(a,"docs");try{await t.default.access(e)}catch{await t.default.mkdir(e,{recursive:!0})}await t.default.mkdir(i,{recursive:!0})}async loadProjectSettings(){let e=r.default.join(this.rootPath,this.configDocDir,"project_settings.json");try{let r=await t.default.readFile(e,"utf-8");return a(r)}catch{return null}}async saveProjectSettings(e){await this.ensureConfigDocDir();let a=r.default.join(this.rootPath,this.configDocDir,"project_settings.json");await t.default.writeFile(a,JSON.stringify(e,null,2),"utf-8")}async loadConfigFiles(){let e=r.default.join(this.rootPath,this.configDocDir,"metadata","config_files.json");try{let r=await t.default.readFile(e,"utf-8");return a(r)}catch{return null}}async saveConfigFiles(e){await this.ensureConfigDocDir();let a=r.default.join(this.rootPath,this.configDocDir,"metadata","config_files.json");await t.default.writeFile(a,JSON.stringify(e,null,2),"utf-8")}async loadConfigFile(e){let i=r.default.isAbsolute(e)?r.default.normalize(e):r.default.join(this.rootPath,e);return a(await t.default.readFile(i,"utf-8"))}async loadConfigDocs(e){let i=r.default.join(this.rootPath,this.configDocDir,"metadata","docs",e);try{let e=await t.default.readFile(i,"utf-8");return a(e)}catch{return null}}async saveConfigDocs(e,a){await this.ensureConfigDocDir();let i=r.default.join(this.rootPath,this.configDocDir,"metadata","docs",e),n=r.default.dirname(i);await t.default.mkdir(n,{recursive:!0}),await t.default.writeFile(i,JSON.stringify(a,null,2),"utf-8")}async browseDirectory(e){let a=r.default.isAbsolute(e)?r.default.normalize(e):r.default.join(this.rootPath,e);return(await t.default.readdir(a,{withFileTypes:!0})).filter(e=>!e.name.startsWith(".")).map(e=>{let t=r.default.join(a,e.name);return{name:e.name,path:t,type:e.isDirectory()?"directory":"file",extension:e.isFile()?r.default.extname(e.name):void 0}}).sort((e,t)=>e.type!==t.type?"directory"===e.type?-1:1:e.name.localeCompare(t.name))}async deleteConfigDocs(e){let a=r.default.join(this.rootPath,this.configDocDir,"metadata","docs",e);try{await t.default.unlink(a)}catch{console.log(`Docs file not found: ${e}`)}}}e.s(["FileSystemService",()=>i],79615)},72071,e=>{"use strict";var t=e.i(74930),r=e.i(76450),a=e.i(79136),i=e.i(34106),n=e.i(93251),o=e.i(74024),s=e.i(31830),l=e.i(5105),u=e.i(43062),d=e.i(70363),c=e.i(23576),p=e.i(89474),f=e.i(13448),h=e.i(46039),g=e.i(18972),x=e.i(93695);e.i(93699);var m=e.i(58282),w=e.i(9280),v=e.i(66823),R=e.i(14747),y=e.i(24868),j=e.i(79615),E=e.i(90088);let C=".user_settings.json",D=".config_doc";async function P(){try{let e,t=(0,v.getRootPath)(),r=new j.FileSystemService(t),a=R.default.join(t,D,C);try{let t=await y.default.readFile(a,"utf-8");e=(0,E.parseJSON)(t)}catch{e={format:"html",autoExport:!0}}let i=await r.loadProjectSettings(),n=i?.export?.fileName||"config-doc",o={...e,fileName:n};return w.NextResponse.json({success:!0,data:o})}catch(e){return console.error("Failed to load export settings:",e),w.NextResponse.json({success:!1,error:e instanceof Error?e.message:"Unknown error"},{status:500})}}async function N(e){try{let t=(await e.json()).settings;if(!t||!t.format)return w.NextResponse.json({success:!1,error:"Invalid settings"},{status:400});let r=(0,v.getRootPath)(),a=new j.FileSystemService(r),i=R.default.join(r,D);await y.default.mkdir(i,{recursive:!0});let n={format:t.format,autoExport:t.autoExport,lastExportedAt:t.lastExportedAt},o=R.default.join(i,C);if(await y.default.writeFile(o,JSON.stringify(n,null,2),"utf-8"),void 0!==t.fileName){let e=await a.loadProjectSettings();if(e)e.export={...e.export,fileName:t.fileName},await a.saveProjectSettings(e);else{let e={projectName:R.default.basename(r),configFiles:[],export:{fileName:t.fileName}};await a.saveProjectSettings(e)}}return w.NextResponse.json({success:!0,message:"Export settings saved"})}catch(e){return console.error("Failed to save export settings:",e),w.NextResponse.json({success:!1,error:e instanceof Error?e.message:"Unknown error"},{status:500})}}e.s(["GET",()=>P,"POST",()=>N],73377);var S=e.i(73377);let A=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/export/settings/route",pathname:"/api/export/settings",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/packages/web/app/api/export/settings/route.ts",nextConfigOutput:"standalone",userland:S}),{workAsyncStorage:b,workUnitAsyncStorage:O,serverHooks:_}=A;function k(){return(0,a.patchFetch)({workAsyncStorage:b,workUnitAsyncStorage:O})}async function F(e,t,a){A.isDev&&(0,i.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let w="/api/export/settings/route";w=w.replace(/\/index$/,"")||"/";let v=await A.prepare(e,t,{srcPage:w,multiZoneDraftMode:!1});if(!v)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:R,params:y,nextConfig:j,parsedUrl:E,isDraftMode:C,prerenderManifest:D,routerServerContext:P,isOnDemandRevalidate:N,revalidateOnlyGenerated:S,resolvedPathname:b,clientReferenceManifest:O,serverActionsManifest:_}=v,k=(0,s.normalizeAppPath)(w),F=!!(D.dynamicRoutes[k]||D.routes[b]),T=async()=>((null==P?void 0:P.render404)?await P.render404(e,t,E,!1):t.end("This page could not be found"),null);if(F&&!C){let e=!!D.routes[b],t=D.dynamicRoutes[k];if(t&&!1===t.fallback&&!e){if(j.experimental.adapterPath)return await T();throw new x.NoFallbackError}}let q=null;!F||A.isDev||C||(q="/index"===(q=b)?"/":q);let I=!0===A.isDev||!F,U=F&&!I;_&&O&&(0,o.setManifestsSingleton)({page:w,clientReferenceManifest:O,serverActionsManifest:_});let H=e.method||"GET",M=(0,n.getTracer)(),K=M.getActiveScopeSpan(),$={params:y,prerenderManifest:D,renderOpts:{experimental:{authInterrupts:!!j.experimental.authInterrupts},cacheComponents:!!j.cacheComponents,supportsDynamicResponse:I,incrementalCache:(0,i.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:j.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,i)=>A.onRequestError(e,t,a,i,P)},sharedContext:{buildId:R}},J=new l.NodeNextRequest(e),G=new l.NodeNextResponse(t),B=u.NextRequestAdapter.fromNodeNextRequest(J,(0,u.signalFromNodeResponse)(t));try{let o=async e=>A.handle(B,$).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=M.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${H} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t)}else e.updateName(`${H} ${w}`)}),s=!!(0,i.getRequestMeta)(e,"minimalMode"),l=async i=>{var n,l;let u=async({previousCacheEntry:r})=>{try{if(!s&&N&&S&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let n=await o(i);e.fetchMetrics=$.renderOpts.fetchMetrics;let l=$.renderOpts.pendingWaitUntil;l&&a.waitUntil&&(a.waitUntil(l),l=void 0);let u=$.renderOpts.collectedTags;if(!F)return await (0,p.sendResponse)(J,G,n,$.renderOpts.pendingWaitUntil),null;{let e=await n.blob(),t=(0,f.toNodeOutgoingHttpHeaders)(n.headers);u&&(t[g.NEXT_CACHE_TAGS_HEADER]=u),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==$.renderOpts.collectedRevalidate&&!($.renderOpts.collectedRevalidate>=g.INFINITE_CACHE)&&$.renderOpts.collectedRevalidate,a=void 0===$.renderOpts.collectedExpire||$.renderOpts.collectedExpire>=g.INFINITE_CACHE?void 0:$.renderOpts.collectedExpire;return{value:{kind:m.CachedRouteKind.APP_ROUTE,status:n.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await A.onRequestError(e,t,{routerKind:"App Router",routePath:w,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:N})},!1,P),t}},d=await A.handleResponse({req:e,nextConfig:j,cacheKey:q,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:D,isRoutePPREnabled:!1,isOnDemandRevalidate:N,revalidateOnlyGenerated:S,responseGenerator:u,waitUntil:a.waitUntil,isMinimalMode:s});if(!F)return null;if((null==d||null==(n=d.value)?void 0:n.kind)!==m.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(l=d.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});s||t.setHeader("x-nextjs-cache",N?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),C&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let x=(0,f.fromNodeOutgoingHttpHeaders)(d.value.headers);return s&&F||x.delete(g.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||x.get("Cache-Control")||x.set("Cache-Control",(0,h.getCacheControlHeader)(d.cacheControl)),await (0,p.sendResponse)(J,G,new Response(d.value.body,{headers:x,status:d.value.status||200})),null};K?await l(K):await M.withPropagatedContext(e.headers,()=>M.trace(d.BaseServerSpan.handleRequest,{spanName:`${H} ${w}`,kind:n.SpanKind.SERVER,attributes:{"http.method":H,"http.target":e.url}},l))}catch(t){if(t instanceof x.NoFallbackError||await A.onRequestError(e,t,{routerKind:"App Router",routePath:k,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:N})},!1,P),F)throw t;return await (0,p.sendResponse)(J,G,new Response(null,{status:500})),null}}e.s(["handler",()=>F,"patchFetch",()=>k,"routeModule",()=>A,"serverHooks",()=>_,"workAsyncStorage",()=>b,"workUnitAsyncStorage",()=>O],72071)}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=%5Broot-of-the-server%5D__fdcdeed1._.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
module.exports=[50873,e=>{"use strict";var t=e.i(74930),n=e.i(76450),
|
|
1
|
+
module.exports=[50873,e=>{"use strict";var t=e.i(74930),n=e.i(76450),o=e.i(79136),r=e.i(34106),i=e.i(93251),a=e.i(74024),s=e.i(31830),l=e.i(5105),c=e.i(43062),d=e.i(70363),p=e.i(23576),u=e.i(89474),f=e.i(13448),h=e.i(46039),g=e.i(18972),m=e.i(93695);e.i(93699);var b=e.i(58282),x=e.i(9280),v=e.i(79615),y=e.i(51958);class w{fsService;storageService;constructor(e){this.fsService=new v.FileSystemService(e),this.storageService=new y.StorageService(this.fsService)}async generateHtml(){let e=await this.fsService.loadProjectSettings();if(!e||!e.configFiles||0===e.configFiles.length)return this.generateEmptyHtml();let t=[];for(let n of e.configFiles)try{let e=n.split(/[/\\]/).pop()||"config.json",o=this.storageService.getDocsFileName(n),r=await this.fsService.loadConfigFile(n),i=await this.fsService.loadConfigDocs(o);t.push({filePath:n,fileName:e,configData:r,docs:i||{configFilePath:n,lastModified:new Date().toISOString(),properties:{}}})}catch(e){console.error(`Failed to load config: ${n}`,e)}let n={projectName:e.projectName,createdAt:"",lastModified:new Date().toISOString(),configFiles:[]};return this.generateFullHtml(n,t)}generateEmptyHtml(){return`<!DOCTYPE html>
|
|
2
2
|
<html lang="ja">
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8">
|
|
@@ -519,14 +519,35 @@ module.exports=[50873,e=>{"use strict";var t=e.i(74930),n=e.i(76450),r=e.i(79136
|
|
|
519
519
|
renderTree(tree, treeEl);
|
|
520
520
|
}
|
|
521
521
|
|
|
522
|
-
//
|
|
522
|
+
// 検索フィルタを適用(ツリー項目のフィルタリング - プロパティ名、パス、説明、備考を検索)
|
|
523
523
|
function applySearchFilter(query) {
|
|
524
|
+
const config = configs[activeConfigIndex];
|
|
524
525
|
const items = document.querySelectorAll('.tree-item');
|
|
526
|
+
|
|
525
527
|
items.forEach(item => {
|
|
526
528
|
const text = item.textContent.toLowerCase();
|
|
527
529
|
const path = item.dataset.path.toLowerCase();
|
|
530
|
+
let matched = false;
|
|
528
531
|
|
|
532
|
+
// プロパティ名とパスで検索
|
|
529
533
|
if (text.includes(query) || path.includes(query)) {
|
|
534
|
+
matched = true;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
// ドキュメント(説明と備考)でも検索
|
|
538
|
+
if (!matched) {
|
|
539
|
+
const doc = config.docs.properties && config.docs.properties[item.dataset.path];
|
|
540
|
+
if (doc) {
|
|
541
|
+
const description = (doc.description || '').toLowerCase();
|
|
542
|
+
const notes = (doc.notes || '').toLowerCase();
|
|
543
|
+
|
|
544
|
+
if (description.includes(query) || notes.includes(query)) {
|
|
545
|
+
matched = true;
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
if (matched) {
|
|
530
551
|
item.style.display = '';
|
|
531
552
|
// 親要素も表示
|
|
532
553
|
let parent = item.parentElement;
|
|
@@ -560,7 +581,7 @@ module.exports=[50873,e=>{"use strict";var t=e.i(74930),n=e.i(76450),r=e.i(79136
|
|
|
560
581
|
let foundInConfigs = [];
|
|
561
582
|
configs.forEach((config, index) => {
|
|
562
583
|
const tree = buildTree(config.configData, '', config.docs);
|
|
563
|
-
const hasMatch =
|
|
584
|
+
const hasMatch = searchInTreeForConfig(tree, query, config);
|
|
564
585
|
if (hasMatch) {
|
|
565
586
|
foundInConfigs.push(index);
|
|
566
587
|
}
|
|
@@ -581,18 +602,30 @@ module.exports=[50873,e=>{"use strict";var t=e.i(74930),n=e.i(76450),r=e.i(79136
|
|
|
581
602
|
});
|
|
582
603
|
}
|
|
583
604
|
|
|
584
|
-
//
|
|
585
|
-
function
|
|
605
|
+
// ツリー内を検索してマッチするか判定(特定の設定ファイル用)
|
|
606
|
+
function searchInTreeForConfig(nodes, query, config) {
|
|
586
607
|
for (const node of nodes) {
|
|
587
608
|
const text = node.key.toLowerCase();
|
|
588
609
|
const path = node.path.toLowerCase();
|
|
589
610
|
|
|
611
|
+
// プロパティ名とパスで検索
|
|
590
612
|
if (text.includes(query) || path.includes(query)) {
|
|
591
613
|
return true;
|
|
592
614
|
}
|
|
593
615
|
|
|
616
|
+
// ドキュメント(説明と備考)でも検索
|
|
617
|
+
const doc = config.docs.properties && config.docs.properties[node.path];
|
|
618
|
+
if (doc) {
|
|
619
|
+
const description = (doc.description || '').toLowerCase();
|
|
620
|
+
const notes = (doc.notes || '').toLowerCase();
|
|
621
|
+
|
|
622
|
+
if (description.includes(query) || notes.includes(query)) {
|
|
623
|
+
return true;
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
|
|
594
627
|
if (node.children && node.children.length > 0) {
|
|
595
|
-
if (
|
|
628
|
+
if (searchInTreeForConfig(node.children, query, config)) {
|
|
596
629
|
return true;
|
|
597
630
|
}
|
|
598
631
|
}
|
|
@@ -613,41 +646,41 @@ module.exports=[50873,e=>{"use strict";var t=e.i(74930),n=e.i(76450),r=e.i(79136
|
|
|
613
646
|
renderCurrentConfig();
|
|
614
647
|
setupSearch();
|
|
615
648
|
}
|
|
616
|
-
`}escapeHtml(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}}class C{rootPath;constructor(e){this.rootPath=e}async generateMarkdown(){let e=new v.FileSystemService(this.rootPath),t=new y.StorageService(e),n=await e.loadProjectSettings();if(!n||0===n.configFiles.length)return"# 設定ファイルドキュメント\n\nドキュメント化された設定ファイルがありません。\n";let
|
|
649
|
+
`}escapeHtml(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}}class C{rootPath;constructor(e){this.rootPath=e}async generateMarkdown(){let e=new v.FileSystemService(this.rootPath),t=new y.StorageService(e),n=await e.loadProjectSettings();if(!n||0===n.configFiles.length)return"# 設定ファイルドキュメント\n\nドキュメント化された設定ファイルがありません。\n";let o="# 設定ファイルドキュメント\n\n";for(let e of(o+=`プロジェクト: **${n.projectName}**
|
|
617
650
|
|
|
618
651
|
最終更新: ${new Date().toLocaleString("ja-JP")}
|
|
619
652
|
|
|
620
653
|
---
|
|
621
654
|
|
|
622
|
-
`,n.configFiles)){let n=e.split(/[/\\]/).pop()||"config.json",
|
|
655
|
+
`,n.configFiles)){let n=e.split(/[/\\]/).pop()||"config.json",r=await t.loadAllDocs(e);o+=`## ${n}
|
|
623
656
|
|
|
624
657
|
**ファイルパス:** \`${e}\`
|
|
625
658
|
|
|
626
|
-
`;let
|
|
659
|
+
`;let i=Object.entries(r.properties);if(0===i.length){o+="*ドキュメントが登録されていません。*\n\n";continue}for(let[e,t]of(o+="### プロパティ一覧\n\n",i))o+=`#### \`${e}\`
|
|
627
660
|
|
|
628
|
-
`,t.description&&(
|
|
661
|
+
`,t.description&&(o+=`**説明:**
|
|
629
662
|
|
|
630
663
|
${t.description}
|
|
631
664
|
|
|
632
|
-
`),t.notes&&(
|
|
665
|
+
`),t.notes&&(o+=`**備考:**
|
|
633
666
|
|
|
634
667
|
${t.notes}
|
|
635
668
|
|
|
636
|
-
`),
|
|
669
|
+
`),o+="---\n\n"}return o+`
|
|
637
670
|
*このドキュメントは [ConfigDoc](https://github.com/your-repo/configdoc) により自動生成されました。*
|
|
638
|
-
`}}class E{rootPath;constructor(e){this.rootPath=e}async generateMarkdownTable(){let e=new v.FileSystemService(this.rootPath),t=new y.StorageService(e),n=await e.loadProjectSettings();if(!n||0===n.configFiles.length)return"# 設定ファイルドキュメント\n\nドキュメント化された設定ファイルがありません。\n";let
|
|
671
|
+
`}}class E{rootPath;constructor(e){this.rootPath=e}async generateMarkdownTable(){let e=new v.FileSystemService(this.rootPath),t=new y.StorageService(e),n=await e.loadProjectSettings();if(!n||0===n.configFiles.length)return"# 設定ファイルドキュメント\n\nドキュメント化された設定ファイルがありません。\n";let o="# 設定ファイルドキュメント\n\n";for(let r of(o+=`プロジェクト: **${n.projectName}**
|
|
639
672
|
|
|
640
673
|
最終更新: ${new Date().toLocaleString("ja-JP")}
|
|
641
674
|
|
|
642
675
|
---
|
|
643
676
|
|
|
644
|
-
`,n.configFiles)){let n=
|
|
677
|
+
`,n.configFiles)){let n=r.split(/[/\\]/).pop()||"config.json",i=await t.loadAllDocs(r),a=await e.loadConfigFile(r);o+=`## ${n}
|
|
645
678
|
|
|
646
|
-
**ファイルパス:** \`${
|
|
679
|
+
**ファイルパス:** \`${r}\`
|
|
647
680
|
|
|
648
|
-
`;let
|
|
649
|
-
`}
|
|
681
|
+
`;let s=Object.entries(i.properties);if(0===s.length){o+="*ドキュメントが登録されていません。*\n\n";continue}for(let[e,t]of(o+="| プロパティ名 | 説明 | 値 | 備考 |\n|-------------|------|-----|------|\n",s)){let n=this.escapeTableCell(e),r=this.escapeTableCell(t.description||"-"),i=this.getPropertyValue(a,e),s=this.escapeTableCell(i),l=this.escapeTableCell(t.notes||"-");o+=`| ${n} | ${r} | ${s} | ${l} |
|
|
682
|
+
`}o+="\n"}return o+`
|
|
650
683
|
*このドキュメントは [ConfigDoc](https://github.com/your-repo/configdoc) により自動生成されました。*
|
|
651
|
-
`}getPropertyValue(e,t){let n=t.split(":"),
|
|
684
|
+
`}getPropertyValue(e,t){let n=t.split(":"),o=e;for(let e of n)if(!o||"object"!=typeof o||!(e in o))return"-";else o=o[e];return null==o?"-":"object"==typeof o?JSON.stringify(o):String(o)}escapeTableCell(e){return e.replace(/\|/g,"\\|").replace(/\n/g,"<br>").replace(/\r/g,"")}}var S=e.i(66823),T=e.i(14747),R=e.i(24868);async function k(e){try{let t,n=(0,S.getRootPath)(),{format:o="html",fileName:r="config-doc"}=await e.json();if("markdown"===o){let e=new C(n);t=await e.generateMarkdown()}else if("markdown-table"===o){let e=new E(n);t=await e.generateMarkdownTable()}else{let e=new w(n);t=await e.generateHtml()}let i=`${r}.${"markdown"===o||"markdown-table"===o?"md":"html"}`,a=new v.FileSystemService(n);await a.ensureConfigDocDir();let s=T.default.join(n,".config_doc","output",i),l=T.default.dirname(s);return await R.default.mkdir(l,{recursive:!0}),await R.default.writeFile(s,t,"utf-8"),x.NextResponse.json({success:!0,message:`${"markdown"===o?"Markdown":"HTML"}ファイルを生成しました`,outputPath:s})}catch(e){return console.error("API Error:",e),x.NextResponse.json({success:!1,error:e instanceof Error?e.message:"Unknown error"},{status:500})}}e.s(["POST",()=>k],1882);var D=e.i(1882);let N=new t.AppRouteRouteModule({definition:{kind:n.RouteKind.APP_ROUTE,page:"/api/export/route",pathname:"/api/export",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/packages/web/app/api/export/route.ts",nextConfigOutput:"standalone",userland:D}),{workAsyncStorage:P,workUnitAsyncStorage:I,serverHooks:$}=N;function H(){return(0,o.patchFetch)({workAsyncStorage:P,workUnitAsyncStorage:I})}async function j(e,t,o){N.isDev&&(0,r.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let x="/api/export/route";x=x.replace(/\/index$/,"")||"/";let v=await N.prepare(e,t,{srcPage:x,multiZoneDraftMode:!1});if(!v)return t.statusCode=400,t.end("Bad Request"),null==o.waitUntil||o.waitUntil.call(o,Promise.resolve()),null;let{buildId:y,params:w,nextConfig:C,parsedUrl:E,isDraftMode:S,prerenderManifest:T,routerServerContext:R,isOnDemandRevalidate:k,revalidateOnlyGenerated:D,resolvedPathname:P,clientReferenceManifest:I,serverActionsManifest:$}=v,H=(0,s.normalizeAppPath)(x),j=!!(T.dynamicRoutes[H]||T.routes[P]),A=async()=>((null==R?void 0:R.render404)?await R.render404(e,t,E,!1):t.end("This page could not be found"),null);if(j&&!S){let e=!!T.routes[P],t=T.dynamicRoutes[H];if(t&&!1===t.fallback&&!e){if(C.experimental.adapterPath)return await A();throw new m.NoFallbackError}}let F=null;!j||N.isDev||S||(F="/index"===(F=P)?"/":F);let L=!0===N.isDev||!j,q=j&&!L;$&&I&&(0,a.setManifestsSingleton)({page:x,clientReferenceManifest:I,serverActionsManifest:$});let O=e.method||"GET",M=(0,i.getTracer)(),U=M.getActiveScopeSpan(),_={params:w,prerenderManifest:T,renderOpts:{experimental:{authInterrupts:!!C.experimental.authInterrupts},cacheComponents:!!C.cacheComponents,supportsDynamicResponse:L,incrementalCache:(0,r.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:C.cacheLife,waitUntil:o.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,n,o,r)=>N.onRequestError(e,t,o,r,R)},sharedContext:{buildId:y}},z=new l.NodeNextRequest(e),B=new l.NodeNextResponse(t),K=c.NextRequestAdapter.fromNodeNextRequest(z,(0,c.signalFromNodeResponse)(t));try{let a=async e=>N.handle(K,_).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let n=M.getRootSpanAttributes();if(!n)return;if(n.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${n.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let o=n.get("next.route");if(o){let t=`${O} ${o}`;e.setAttributes({"next.route":o,"http.route":o,"next.span_name":t}),e.updateName(t)}else e.updateName(`${O} ${x}`)}),s=!!(0,r.getRequestMeta)(e,"minimalMode"),l=async r=>{var i,l;let c=async({previousCacheEntry:n})=>{try{if(!s&&k&&D&&!n)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let i=await a(r);e.fetchMetrics=_.renderOpts.fetchMetrics;let l=_.renderOpts.pendingWaitUntil;l&&o.waitUntil&&(o.waitUntil(l),l=void 0);let c=_.renderOpts.collectedTags;if(!j)return await (0,u.sendResponse)(z,B,i,_.renderOpts.pendingWaitUntil),null;{let e=await i.blob(),t=(0,f.toNodeOutgoingHttpHeaders)(i.headers);c&&(t[g.NEXT_CACHE_TAGS_HEADER]=c),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let n=void 0!==_.renderOpts.collectedRevalidate&&!(_.renderOpts.collectedRevalidate>=g.INFINITE_CACHE)&&_.renderOpts.collectedRevalidate,o=void 0===_.renderOpts.collectedExpire||_.renderOpts.collectedExpire>=g.INFINITE_CACHE?void 0:_.renderOpts.collectedExpire;return{value:{kind:b.CachedRouteKind.APP_ROUTE,status:i.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:n,expire:o}}}}catch(t){throw(null==n?void 0:n.isStale)&&await N.onRequestError(e,t,{routerKind:"App Router",routePath:x,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:q,isOnDemandRevalidate:k})},!1,R),t}},d=await N.handleResponse({req:e,nextConfig:C,cacheKey:F,routeKind:n.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:T,isRoutePPREnabled:!1,isOnDemandRevalidate:k,revalidateOnlyGenerated:D,responseGenerator:c,waitUntil:o.waitUntil,isMinimalMode:s});if(!j)return null;if((null==d||null==(i=d.value)?void 0:i.kind)!==b.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(l=d.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});s||t.setHeader("x-nextjs-cache",k?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),S&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,f.fromNodeOutgoingHttpHeaders)(d.value.headers);return s&&j||m.delete(g.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,h.getCacheControlHeader)(d.cacheControl)),await (0,u.sendResponse)(z,B,new Response(d.value.body,{headers:m,status:d.value.status||200})),null};U?await l(U):await M.withPropagatedContext(e.headers,()=>M.trace(d.BaseServerSpan.handleRequest,{spanName:`${O} ${x}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":e.url}},l))}catch(t){if(t instanceof m.NoFallbackError||await N.onRequestError(e,t,{routerKind:"App Router",routePath:H,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:q,isOnDemandRevalidate:k})},!1,R),j)throw t;return await (0,u.sendResponse)(z,B,new Response(null,{status:500})),null}}e.s(["handler",()=>j,"patchFetch",()=>H,"routeModule",()=>N,"serverHooks",()=>$,"workAsyncStorage",()=>P,"workUnitAsyncStorage",()=>I],50873)}];
|
|
652
685
|
|
|
653
686
|
//# sourceMappingURL=b182f_next_dist_esm_build_templates_app-route_915c0243.js.map
|