/opt/canhelp/apps/web/.next/server/app/sitemap.xml
NameSizeModeActions
route.js128340644editdlrm
route.js.nft.json79220644editdlrm
route_client-reference-manifest.js194870644editdlrm
Edit: /opt/canhelp/apps/web/.next/server/app/sitemap.xml/route.js (12834B)
(()=>{var a={};a.id=475,a.ids=[475],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14691:(a,b)=>{"use strict";function c(a){return Array.isArray(a)?a:[a]}function d(a){if(null!=a)return c(a)}function e(a){let b;if("string"==typeof a)try{b=(a=new URL(a)).origin}catch{}return b}Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{getOrigin:function(){return e},resolveArray:function(){return c},resolveAsArrayOrUndefined:function(){return d}})},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},23757:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{resolveManifest:function(){return g},resolveRobots:function(){return e},resolveRouteData:function(){return h},resolveSitemap:function(){return f}});let d=c(14691);function e(a){let b="";for(let c of Array.isArray(a.rules)?a.rules:[a.rules]){for(let a of(0,d.resolveArray)(c.userAgent||["*"]))b+=`User-Agent: ${a} `;if(c.allow)for(let a of(0,d.resolveArray)(c.allow))b+=`Allow: ${a} `;if(c.disallow)for(let a of(0,d.resolveArray)(c.disallow))b+=`Disallow: ${a} `;c.crawlDelay&&(b+=`Crawl-delay: ${c.crawlDelay} `),b+="\n"}return a.host&&(b+=`Host: ${a.host} `),a.sitemap&&(0,d.resolveArray)(a.sitemap).forEach(a=>{b+=`Sitemap: ${a} `}),b}function f(a){let b=a.some(a=>Object.keys(a.alternates??{}).length>0),c=a.some(a=>{var b;return!!(null==(b=a.images)?void 0:b.length)}),d=a.some(a=>{var b;return!!(null==(b=a.videos)?void 0:b.length)}),e="";for(let i of(e+='\n',e+='${i.url} `;let a=null==(f=i.alternates)?void 0:f.languages;if(a&&Object.keys(a).length)for(let b in a)e+=` `;if(null==(g=i.images)?void 0:g.length)for(let a of i.images)e+=` ${a} `;if(null==(h=i.videos)?void 0:h.length)for(let a of i.videos)e+=["",`${a.title}`,`${a.thumbnail_loc}`,`${a.description}`,a.content_loc&&`${a.content_loc}`,a.player_loc&&`${a.player_loc}`,a.duration&&`${a.duration}`,a.view_count&&`${a.view_count}`,a.tag&&`${a.tag}`,a.rating&&`${a.rating}`,a.expiration_date&&`${a.expiration_date}`,a.publication_date&&`${a.publication_date}`,a.family_friendly&&`${a.family_friendly}`,a.requires_subscription&&`${a.requires_subscription}`,a.live&&`${a.live}`,a.restriction&&`${a.restriction.content}`,a.platform&&`${a.platform.content}`,a.uploader&&`${a.uploader.content}`,` `].filter(Boolean).join("\n");if(i.lastModified){let a=i.lastModified instanceof Date?i.lastModified.toISOString():i.lastModified;e+=`${a} `}i.changeFrequency&&(e+=`${i.changeFrequency} `),"number"==typeof i.priority&&(e+=`${i.priority} `),e+="\n"}return e+"\n"}function g(a){return JSON.stringify(a)}function h(a,b){return"robots"===b?e(a):"sitemap"===b?f(a):"manifest"===b?g(a):""}},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},80408:()=>{},83019:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>K,patchFetch:()=>J,routeModule:()=>F,serverHooks:()=>I,workAsyncStorage:()=>G,workUnitAsyncStorage:()=>H});var d={};c.r(d),c.d(d,{default:()=>B});var e={};c.r(e),c.d(e,{GET:()=>E});var f=c(26421),g=c(97714),h=c(85681),i=c(22369),j=c(37587),k=c(261),l=c(46537),m=c(3463),n=c(1889),o=c(85250),p=c(23620),q=c(29790),r=c(67876),s=c(57749),t=c(86439),u=c(40139),v=c(53444);let w=function(a){let b="http://localhost:3000",c=a&&a.trim()||b;try{let a=new URL(c);return"localhost"!==a.hostname&&"https:"!==a.protocol&&(a.protocol="https:"),a.toString().replace(/\/$/,"")}catch{return b}}("http://canhelp.gr"),x="https://api.canhelp.gr",y=[{url:`${w}/`,changeFrequency:"daily",priority:1},{url:`${w}/tasks`,changeFrequency:"hourly",priority:.9},{url:`${w}/specialists`,changeFrequency:"hourly",priority:.9},{url:`${w}/pricing`,changeFrequency:"weekly",priority:.6},{url:`${w}/support`,changeFrequency:"monthly",priority:.4},{url:`${w}/become-specialist`,changeFrequency:"monthly",priority:.7}];async function z(){let a=[],b=1;try{for(;;){let c=await fetch(`${x}/api/tasks?page=${b}&limit=100&status=open`,{next:{revalidate:3600}});if(!c.ok)break;let d=await c.json(),e=d.data??[];for(let{task:b}of e)a.push({url:`${w}/tasks/${b.id}`,lastModified:b.updatedAt?new Date(b.updatedAt):void 0,changeFrequency:"daily",priority:.8});if(a.length>=d.total||e.length<100)break;b++}}catch{}return a}async function A(){let a=[],b=1;try{for(;;){let c=await fetch(`${x}/api/users/specialists?page=${b}&limit=100`,{next:{revalidate:3600}});if(!c.ok)break;let d=await c.json(),e=d.data??[];for(let b of e)a.push({url:`${w}/users/${b.id}`,lastModified:b.updatedAt?new Date(b.updatedAt):void 0,changeFrequency:"weekly",priority:.75}),b.personalSiteSlug&&a.push({url:`${w}/site/${b.personalSiteSlug}`,lastModified:b.updatedAt?new Date(b.updatedAt):void 0,changeFrequency:"weekly",priority:.85});if(a.length>=d.total||e.length<100)break;b++}}catch{}return a}async function B(){let[a,b]=await Promise.all([z(),A()]);return[...y,...a,...b]}var C=c(23757);let D={...d}.default;if("function"!=typeof D)throw Error('Default export is missing in "/opt/canhelp/apps/web/src/app/sitemap.ts"');async function E(a,b){let{__metadata_id__:c,...d}=await b.params||{},e=!!c&&c.endsWith(".xml");if(c&&!e)return new v.NextResponse("Not Found",{status:404});let f=c&&e?c.slice(0,-4):void 0,g=await D({id:f}),h=(0,C.resolveRouteData)(g,"sitemap");return new v.NextResponse(h,{headers:{"Content-Type":"application/xml","Cache-Control":"public, max-age=0, must-revalidate"}})}let F=new f.AppRouteRouteModule({definition:{kind:g.RouteKind.APP_ROUTE,page:"/sitemap.xml/route",pathname:"/sitemap.xml",filename:"sitemap",bundlePath:"app/sitemap.xml/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"next-metadata-route-loader?filePath=%2Fopt%2Fcanhelp%2Fapps%2Fweb%2Fsrc%2Fapp%2Fsitemap.ts&isDynamicRouteExtension=1!?__next_metadata_route__",nextConfigOutput:"",userland:e}),{workAsyncStorage:G,workUnitAsyncStorage:H,serverHooks:I}=F;function J(){return(0,h.patchFetch)({workAsyncStorage:G,workUnitAsyncStorage:H})}async function K(a,b,c){var d;let e="/sitemap.xml/route";"/index"===e&&(e="/");let f=await F.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:h,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:A,revalidateOnlyGenerated:B,resolvedPathname:C}=f,D=(0,k.normalizeAppPath)(e),E=!!(y.dynamicRoutes[D]||y.routes[C]);if(E&&!x){let a=!!y.routes[C],b=y.dynamicRoutes[D];if(b&&!1===b.fallback&&!a)throw new t.NoFallbackError}let G=null;!E||F.isDev||x||(G="/index"===(G=C)?"/":G);let H=!0===F.isDev||!E,I=E&&!H,J=a.method||"GET",K=(0,j.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,i.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>F.onRequestError(a,b,d,z)},sharedContext:{buildId:h}},N=new l.NodeNextRequest(a),O=new l.NodeNextResponse(b),P=m.NextRequestAdapter.fromNodeNextRequest(N,(0,m.signalFromNodeResponse)(b));try{let d=async c=>F.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),f=async f=>{var h,j;let k=async({previousCacheEntry:g})=>{try{if(!(0,i.getRequestMeta)(a,"minimalMode")&&A&&B&&!g)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(f);a.fetchMetrics=M.renderOpts.fetchMetrics;let h=M.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let j=M.renderOpts.collectedTags;if(!E)return await (0,p.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[s.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==g?void 0:g.isStale)&&await F.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,o.c)({isRevalidate:I,isOnDemandRevalidate:A})},z),b}},l=await F.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:g.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:B,responseGenerator:k,waitUntil:c.waitUntil});if(!E)return null;if((null==l||null==(h=l.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,i.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",A?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,q.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,i.getRequestMeta)(a,"minimalMode")&&E||m.delete(s.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,r.getCacheControlHeader)(l.cacheControl)),await (0,p.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await f(L):await K.withPropagatedContext(a.headers,()=>K.trace(n.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:j.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},f))}catch(b){if(b instanceof t.NoFallbackError||await F.onRequestError(a,b,{routerKind:"App Router",routePath:D,routeType:"route",revalidateReason:(0,o.c)({isRevalidate:I,isOnDemandRevalidate:A})}),E)throw b;return await (0,p.I)(N,O,new Response(null,{status:500})),null}}},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87032:()=>{}};var b=require("../../webpack-runtime.js");b.C(a);var c=b.X(0,[901,825],()=>b(b.s=83019));module.exports=c})();