@kurly-growth/growthman 0.1.11 → 0.1.12

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.
Files changed (244) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build/chunks/{[root-of-the-server]__310ad51a._.js → [root-of-the-server]__51225daf._.js} +7 -7
  3. package/.next/build/chunks/{[root-of-the-server]__310ad51a._.js.map → [root-of-the-server]__51225daf._.js.map} +2 -2
  4. package/.next/build/chunks/{[root-of-the-server]__8e2c0d87._.js → [root-of-the-server]__974941ed._.js} +3 -3
  5. package/.next/build/chunks/[turbopack-node]_transforms_postcss_ts_6920245c._.js +13 -0
  6. package/.next/build/chunks/[turbopack]_runtime.js +1 -1
  7. package/.next/build/chunks/{8e02f_b5d23412._.js → node_modules_fe693df6._.js} +167 -167
  8. package/.next/build/chunks/node_modules_fe693df6._.js.map +47 -0
  9. package/.next/build/postcss.js +4 -4
  10. package/.next/build-manifest.json +6 -6
  11. package/.next/fallback-build-manifest.json +2 -2
  12. package/.next/required-server-files.js +1 -1
  13. package/.next/required-server-files.json +1 -1
  14. package/.next/server/app/_global-error/page/build-manifest.json +4 -4
  15. package/.next/server/app/_global-error/page.js +10 -10
  16. package/.next/server/app/_global-error/page.js.nft.json +1 -1
  17. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  18. package/.next/server/app/_global-error.html +2 -2
  19. package/.next/server/app/_global-error.rsc +8 -8
  20. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +2 -2
  21. package/.next/server/app/_global-error.segments/_full.segment.rsc +8 -8
  22. package/.next/server/app/_global-error.segments/_head.segment.rsc +4 -4
  23. package/.next/server/app/_global-error.segments/_index.segment.rsc +3 -3
  24. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  25. package/.next/server/app/_not-found/page/build-manifest.json +4 -4
  26. package/.next/server/app/_not-found/page/next-font-manifest.json +1 -1
  27. package/.next/server/app/_not-found/page.js +13 -13
  28. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  29. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  30. package/.next/server/app/_not-found.html +1 -1
  31. package/.next/server/app/_not-found.rsc +9 -9
  32. package/.next/server/app/_not-found.segments/_full.segment.rsc +9 -9
  33. package/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
  34. package/.next/server/app/_not-found.segments/_index.segment.rsc +4 -4
  35. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  36. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
  37. package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  38. package/.next/server/app/api/endpoints/[id]/route.js +6 -6
  39. package/.next/server/app/api/endpoints/[id]/route.js.nft.json +1 -1
  40. package/.next/server/app/api/endpoints/bulk/route.js +6 -6
  41. package/.next/server/app/api/endpoints/bulk/route.js.nft.json +1 -1
  42. package/.next/server/app/api/endpoints/import/route.js +6 -6
  43. package/.next/server/app/api/endpoints/import/route.js.nft.json +1 -1
  44. package/.next/server/app/api/endpoints/route.js +6 -6
  45. package/.next/server/app/api/endpoints/route.js.nft.json +1 -1
  46. package/.next/server/app/api/endpoints/sync/route.js +6 -6
  47. package/.next/server/app/api/endpoints/sync/route.js.nft.json +1 -1
  48. package/.next/server/app/api/mock/[...slug]/route.js +6 -6
  49. package/.next/server/app/api/mock/[...slug]/route.js.nft.json +1 -1
  50. package/.next/server/app/favicon.ico/route.js +5 -5
  51. package/.next/server/app/favicon.ico/route.js.nft.json +1 -1
  52. package/.next/server/app/index.html +1 -1
  53. package/.next/server/app/index.rsc +11 -11
  54. package/.next/server/app/index.segments/__PAGE__.segment.rsc +4 -4
  55. package/.next/server/app/index.segments/_full.segment.rsc +11 -11
  56. package/.next/server/app/index.segments/_head.segment.rsc +4 -4
  57. package/.next/server/app/index.segments/_index.segment.rsc +4 -4
  58. package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  59. package/.next/server/app/page/build-manifest.json +4 -4
  60. package/.next/server/app/page/next-font-manifest.json +1 -1
  61. package/.next/server/app/page/react-loadable-manifest.json +3 -3
  62. package/.next/server/app/page.js +15 -15
  63. package/.next/server/app/page.js.nft.json +1 -1
  64. package/.next/server/app/page_client-reference-manifest.js +1 -1
  65. package/.next/server/chunks/1629d_next_dist_esm_build_templates_app-route_498527d5.js +3 -0
  66. package/.next/server/chunks/1629d_next_dist_esm_build_templates_app-route_498527d5.js.map +1 -0
  67. package/.next/server/chunks/[root-of-the-server]__3534fecc._.js +3 -0
  68. package/.next/server/chunks/{[root-of-the-server]__eff896e6._.js.map → [root-of-the-server]__3534fecc._.js.map} +1 -1
  69. package/.next/server/chunks/[root-of-the-server]__461ea613._.js +21 -0
  70. package/.next/server/chunks/[root-of-the-server]__461ea613._.js.map +1 -0
  71. package/.next/server/chunks/{[root-of-the-server]__9f34b8fa._.js → [root-of-the-server]__4929acb0._.js} +29 -29
  72. package/.next/server/chunks/[root-of-the-server]__4929acb0._.js.map +1 -0
  73. package/.next/server/chunks/[root-of-the-server]__909218aa._.js +3 -0
  74. package/.next/server/chunks/{[root-of-the-server]__a757185b._.js.map → [root-of-the-server]__909218aa._.js.map} +1 -1
  75. package/.next/server/chunks/[root-of-the-server]__a6c01a13._.js +3 -0
  76. package/.next/server/chunks/{[root-of-the-server]__41261df4._.js.map → [root-of-the-server]__a6c01a13._.js.map} +1 -1
  77. package/.next/server/chunks/[root-of-the-server]__db1127cf._.js +3 -0
  78. package/.next/server/chunks/{[root-of-the-server]__76e3e5c5._.js.map → [root-of-the-server]__db1127cf._.js.map} +1 -1
  79. package/.next/server/chunks/[root-of-the-server]__e46f3e25._.js +3 -0
  80. package/.next/server/chunks/[root-of-the-server]__e46f3e25._.js.map +1 -0
  81. package/.next/server/chunks/[turbopack]_runtime.js +1 -1
  82. package/.next/server/chunks/_next-internal_server_app_api_endpoints_[id]_route_actions_b91cfc4c.js +3 -0
  83. package/.next/server/chunks/_next-internal_server_app_api_endpoints_bulk_route_actions_560cc6cd.js +3 -0
  84. package/.next/server/chunks/_next-internal_server_app_api_endpoints_import_route_actions_f2444950.js +3 -0
  85. package/.next/server/chunks/_next-internal_server_app_api_endpoints_route_actions_49d8ad56.js +3 -0
  86. package/.next/server/chunks/_next-internal_server_app_api_endpoints_sync_route_actions_0f446550.js +3 -0
  87. package/.next/server/chunks/_next-internal_server_app_api_mock_[___slug]_route_actions_be875f77.js +3 -0
  88. package/.next/server/chunks/_next-internal_server_app_favicon_ico_route_actions_353150a5.js +3 -0
  89. package/.next/server/chunks/node_modules__pnpm_a61fb769._.js +3 -0
  90. package/.next/server/chunks/{8e02f__pnpm_34c6253f._.js.map → node_modules__pnpm_a61fb769._.js.map} +1 -1
  91. package/.next/server/chunks/ssr/1629d_next_dist_1a21bde7._.js +6 -0
  92. package/.next/server/chunks/ssr/1629d_next_dist_1a21bde7._.js.map +1 -0
  93. package/.next/server/chunks/ssr/1629d_next_dist_8dc31fba._.js +3 -0
  94. package/.next/server/chunks/ssr/1629d_next_dist_8dc31fba._.js.map +1 -0
  95. package/.next/server/chunks/ssr/{9ca2c_next_dist_client_components_fcf027b5._.js → 1629d_next_dist_client_components_b01b33e4._.js} +2 -2
  96. package/.next/server/chunks/ssr/1629d_next_dist_client_components_b01b33e4._.js.map +1 -0
  97. package/.next/server/chunks/ssr/{9ca2c_next_dist_client_components_builtin_forbidden_f49335c3.js → 1629d_next_dist_client_components_builtin_forbidden_4cab2078.js} +2 -2
  98. package/.next/server/chunks/ssr/1629d_next_dist_client_components_builtin_forbidden_4cab2078.js.map +1 -0
  99. package/.next/server/chunks/ssr/1629d_next_dist_client_components_builtin_global-error_0d5cb623.js +3 -0
  100. package/.next/server/chunks/ssr/1629d_next_dist_client_components_builtin_global-error_0d5cb623.js.map +1 -0
  101. package/.next/server/chunks/ssr/{9ca2c_next_dist_client_components_builtin_unauthorized_e72efa43.js → 1629d_next_dist_client_components_builtin_unauthorized_b8fbdcad.js} +2 -2
  102. package/.next/server/chunks/ssr/1629d_next_dist_client_components_builtin_unauthorized_b8fbdcad.js.map +1 -0
  103. package/.next/server/chunks/ssr/{9ca2c_next_dist_3cd898b4._.js → 1629d_next_dist_d78dee57._.js} +3 -3
  104. package/.next/server/chunks/ssr/1629d_next_dist_d78dee57._.js.map +1 -0
  105. package/.next/server/chunks/ssr/{9ca2c_next_dist_esm_build_templates_app-page_535865d4.js → 1629d_next_dist_esm_build_templates_app-page_d4e9464b.js} +3 -3
  106. package/.next/server/chunks/ssr/1629d_next_dist_esm_build_templates_app-page_d4e9464b.js.map +1 -0
  107. package/.next/server/chunks/ssr/67049_lucide-react_dist_esm_createLucideIcon_22fe2e14.js +3 -0
  108. package/.next/server/chunks/ssr/67049_lucide-react_dist_esm_createLucideIcon_22fe2e14.js.map +1 -0
  109. package/.next/server/chunks/ssr/[root-of-the-server]__14f4396a._.js +10 -0
  110. package/.next/server/chunks/ssr/[root-of-the-server]__14f4396a._.js.map +1 -0
  111. package/.next/server/chunks/ssr/[root-of-the-server]__3064bf15._.js +3 -0
  112. package/.next/server/chunks/ssr/[root-of-the-server]__3064bf15._.js.map +1 -0
  113. package/.next/server/chunks/ssr/{[root-of-the-server]__e5e3a413._.js → [root-of-the-server]__4ff41ba3._.js} +2 -2
  114. package/.next/server/chunks/ssr/[root-of-the-server]__4ff41ba3._.js.map +1 -0
  115. package/.next/server/chunks/ssr/[root-of-the-server]__57c5da8e._.js +3 -0
  116. package/.next/server/chunks/ssr/[root-of-the-server]__57c5da8e._.js.map +1 -0
  117. package/.next/server/chunks/ssr/{[root-of-the-server]__e3541a66._.js → [root-of-the-server]__67653b38._.js} +2 -2
  118. package/.next/server/chunks/ssr/[root-of-the-server]__67653b38._.js.map +1 -0
  119. package/.next/server/chunks/ssr/{[root-of-the-server]__18a26c10._.js → [root-of-the-server]__7d48410d._.js} +2 -2
  120. package/.next/server/chunks/ssr/[root-of-the-server]__7d48410d._.js.map +1 -0
  121. package/.next/server/chunks/ssr/{[root-of-the-server]__307548a6._.js → [root-of-the-server]__a49eaf36._.js} +2 -2
  122. package/.next/server/chunks/ssr/[root-of-the-server]__a49eaf36._.js.map +1 -0
  123. package/.next/server/chunks/ssr/[root-of-the-server]__b0617f51._.js +3 -0
  124. package/.next/server/chunks/ssr/[root-of-the-server]__b0617f51._.js.map +1 -0
  125. package/.next/server/chunks/ssr/[root-of-the-server]__cc026bde._.js +3 -0
  126. package/.next/server/chunks/ssr/[root-of-the-server]__cc026bde._.js.map +1 -0
  127. package/.next/server/chunks/ssr/{[root-of-the-server]__d2eb7012._.js → [root-of-the-server]__d079898e._.js} +2 -2
  128. package/.next/server/chunks/ssr/[root-of-the-server]__d079898e._.js.map +1 -0
  129. package/.next/server/chunks/ssr/[root-of-the-server]__d3649e47._.js +3 -0
  130. package/.next/server/chunks/ssr/[root-of-the-server]__d3649e47._.js.map +1 -0
  131. package/.next/server/chunks/ssr/[turbopack]_runtime.js +1 -1
  132. package/.next/server/chunks/ssr/_9b6e3dc4._.js +3 -0
  133. package/.next/server/chunks/ssr/_9b6e3dc4._.js.map +1 -0
  134. package/.next/server/chunks/ssr/_a437ac52._.js +7 -0
  135. package/.next/server/chunks/ssr/_a437ac52._.js.map +1 -0
  136. package/.next/server/chunks/ssr/_b62b070d._.js +4 -0
  137. package/.next/server/chunks/ssr/_b62b070d._.js.map +1 -0
  138. package/.next/server/chunks/ssr/_next-internal_server_app__global-error_page_actions_75761787.js +3 -0
  139. package/.next/server/chunks/ssr/_next-internal_server_app__not-found_page_actions_554ec2bf.js +3 -0
  140. package/.next/server/chunks/ssr/_next-internal_server_app_page_actions_39d4fc33.js +3 -0
  141. package/.next/server/chunks/ssr/app_b9b1292a._.js +3 -0
  142. package/.next/server/chunks/ssr/app_b9b1292a._.js.map +1 -0
  143. package/.next/server/middleware-build-manifest.js +4 -4
  144. package/.next/server/next-font-manifest.js +1 -1
  145. package/.next/server/next-font-manifest.json +2 -2
  146. package/.next/server/pages/404.html +1 -1
  147. package/.next/server/pages/500.html +2 -2
  148. package/.next/static/chunks/{0275b0ee12e7ce52.js → 16403d658c649f0f.js} +1 -1
  149. package/.next/static/chunks/2422cfacfdb28c2c.js +5 -0
  150. package/.next/static/chunks/42572c067be8ea0f.js +1 -0
  151. package/.next/static/chunks/5045da71379799ce.js +1 -0
  152. package/.next/static/chunks/6e04dfc4035d7150.js +5 -0
  153. package/.next/static/chunks/8155485116e3ff24.js +1 -0
  154. package/.next/static/chunks/a66e09a7c2336f67.js +1 -0
  155. package/.next/static/chunks/a6dad97d9634a72d.js.map +1 -1
  156. package/.next/static/chunks/{6b128c466fac1211.js → f1cfb69226717279.js} +1 -1
  157. package/.next/static/chunks/{turbopack-68dbd89b378e971c.js → turbopack-7027959231bb432a.js} +1 -1
  158. package/.next/trace +1 -1
  159. package/.next/trace-build +1 -1
  160. package/bin/cli.js +4 -2
  161. package/package.json +1 -1
  162. package/.next/build/chunks/8e02f_b5d23412._.js.map +0 -47
  163. package/.next/build/chunks/[turbopack-node]_transforms_postcss_ts_5040861e._.js +0 -13
  164. package/.next/server/chunks/4c6d9__next-internal_server_app_api_endpoints_[id]_route_actions_9be426d4.js +0 -3
  165. package/.next/server/chunks/4c6d9__next-internal_server_app_api_endpoints_bulk_route_actions_e28c0cd3.js +0 -3
  166. package/.next/server/chunks/4c6d9__next-internal_server_app_api_endpoints_import_route_actions_89a982f4.js +0 -3
  167. package/.next/server/chunks/4c6d9__next-internal_server_app_api_endpoints_route_actions_0c151162.js +0 -3
  168. package/.next/server/chunks/4c6d9__next-internal_server_app_api_endpoints_sync_route_actions_3051349a.js +0 -3
  169. package/.next/server/chunks/4c6d9__next-internal_server_app_api_mock_[___slug]_route_actions_521def8c.js +0 -3
  170. package/.next/server/chunks/8e02f__pnpm_34c6253f._.js +0 -3
  171. package/.next/server/chunks/9ca2c_next_dist_esm_build_templates_app-route_84087e8c.js +0 -3
  172. package/.next/server/chunks/9ca2c_next_dist_esm_build_templates_app-route_84087e8c.js.map +0 -1
  173. package/.next/server/chunks/[root-of-the-server]__41261df4._.js +0 -3
  174. package/.next/server/chunks/[root-of-the-server]__76e3e5c5._.js +0 -3
  175. package/.next/server/chunks/[root-of-the-server]__9f34b8fa._.js.map +0 -1
  176. package/.next/server/chunks/[root-of-the-server]__a757185b._.js +0 -3
  177. package/.next/server/chunks/[root-of-the-server]__e59e1188._.js +0 -3
  178. package/.next/server/chunks/[root-of-the-server]__e59e1188._.js.map +0 -1
  179. package/.next/server/chunks/[root-of-the-server]__e9fe7c9a._.js +0 -21
  180. package/.next/server/chunks/[root-of-the-server]__e9fe7c9a._.js.map +0 -1
  181. package/.next/server/chunks/[root-of-the-server]__eff896e6._.js +0 -3
  182. package/.next/server/chunks/ced06_growth-mock-server__next-internal_server_app_favicon_ico_route_actions_b931e89c.js +0 -3
  183. package/.next/server/chunks/ssr/3d860_Project_Web_growth-mock-server__next-internal_server_app_page_actions_a455ccb7.js +0 -3
  184. package/.next/server/chunks/ssr/4c6d9__next-internal_server_app__global-error_page_actions_386af4fb.js +0 -3
  185. package/.next/server/chunks/ssr/9ca2c_next_dist_3cd898b4._.js.map +0 -1
  186. package/.next/server/chunks/ssr/9ca2c_next_dist_client_components_builtin_forbidden_f49335c3.js.map +0 -1
  187. package/.next/server/chunks/ssr/9ca2c_next_dist_client_components_builtin_global-error_f88aa19b.js +0 -3
  188. package/.next/server/chunks/ssr/9ca2c_next_dist_client_components_builtin_global-error_f88aa19b.js.map +0 -1
  189. package/.next/server/chunks/ssr/9ca2c_next_dist_client_components_builtin_unauthorized_e72efa43.js.map +0 -1
  190. package/.next/server/chunks/ssr/9ca2c_next_dist_client_components_fcf027b5._.js.map +0 -1
  191. package/.next/server/chunks/ssr/9ca2c_next_dist_d1e0d146._.js +0 -3
  192. package/.next/server/chunks/ssr/9ca2c_next_dist_d1e0d146._.js.map +0 -1
  193. package/.next/server/chunks/ssr/9ca2c_next_dist_dedb0e75._.js +0 -6
  194. package/.next/server/chunks/ssr/9ca2c_next_dist_dedb0e75._.js.map +0 -1
  195. package/.next/server/chunks/ssr/9ca2c_next_dist_esm_build_templates_app-page_535865d4.js.map +0 -1
  196. package/.next/server/chunks/ssr/Desktop_Project_Web_growth-mock-server_99247fbd._.js +0 -3
  197. package/.next/server/chunks/ssr/Desktop_Project_Web_growth-mock-server_99247fbd._.js.map +0 -1
  198. package/.next/server/chunks/ssr/Desktop_Project_Web_growth-mock-server_app_734cd624._.js +0 -3
  199. package/.next/server/chunks/ssr/Desktop_Project_Web_growth-mock-server_app_734cd624._.js.map +0 -1
  200. package/.next/server/chunks/ssr/Desktop_Project_Web_growth-mock-server_c7522028._.js +0 -7
  201. package/.next/server/chunks/ssr/Desktop_Project_Web_growth-mock-server_c7522028._.js.map +0 -1
  202. package/.next/server/chunks/ssr/Desktop_Project_Web_growth-mock-server_d48712e4._.js +0 -4
  203. package/.next/server/chunks/ssr/Desktop_Project_Web_growth-mock-server_d48712e4._.js.map +0 -1
  204. package/.next/server/chunks/ssr/[root-of-the-server]__17853f53._.js +0 -3
  205. package/.next/server/chunks/ssr/[root-of-the-server]__17853f53._.js.map +0 -1
  206. package/.next/server/chunks/ssr/[root-of-the-server]__18a26c10._.js.map +0 -1
  207. package/.next/server/chunks/ssr/[root-of-the-server]__307548a6._.js.map +0 -1
  208. package/.next/server/chunks/ssr/[root-of-the-server]__4390a85d._.js +0 -10
  209. package/.next/server/chunks/ssr/[root-of-the-server]__4390a85d._.js.map +0 -1
  210. package/.next/server/chunks/ssr/[root-of-the-server]__6a5dc11f._.js +0 -3
  211. package/.next/server/chunks/ssr/[root-of-the-server]__6a5dc11f._.js.map +0 -1
  212. package/.next/server/chunks/ssr/[root-of-the-server]__92f5730f._.js +0 -3
  213. package/.next/server/chunks/ssr/[root-of-the-server]__92f5730f._.js.map +0 -1
  214. package/.next/server/chunks/ssr/[root-of-the-server]__c6e8de01._.js +0 -3
  215. package/.next/server/chunks/ssr/[root-of-the-server]__c6e8de01._.js.map +0 -1
  216. package/.next/server/chunks/ssr/[root-of-the-server]__d2eb7012._.js.map +0 -1
  217. package/.next/server/chunks/ssr/[root-of-the-server]__e3541a66._.js.map +0 -1
  218. package/.next/server/chunks/ssr/[root-of-the-server]__e5e3a413._.js.map +0 -1
  219. package/.next/server/chunks/ssr/[root-of-the-server]__fb4cb1db._.js +0 -3
  220. package/.next/server/chunks/ssr/[root-of-the-server]__fb4cb1db._.js.map +0 -1
  221. package/.next/server/chunks/ssr/b9a5c_lucide-react_dist_esm_createLucideIcon_3a4054f7.js +0 -3
  222. package/.next/server/chunks/ssr/b9a5c_lucide-react_dist_esm_createLucideIcon_3a4054f7.js.map +0 -1
  223. package/.next/server/chunks/ssr/ced06_growth-mock-server__next-internal_server_app__not-found_page_actions_41a9defd.js +0 -3
  224. package/.next/static/chunks/33ea23f1243e96f0.js +0 -1
  225. package/.next/static/chunks/525197a7544b0e96.js +0 -1
  226. package/.next/static/chunks/560974ba92e6363e.js +0 -5
  227. package/.next/static/chunks/83362d304479bb05.js +0 -5
  228. package/.next/static/chunks/8d6c35afc42e5d8e.js +0 -1
  229. package/.next/static/chunks/9fff2b37cf885aa6.js +0 -1
  230. /package/.next/build/chunks/{[root-of-the-server]__8e2c0d87._.js.map → [root-of-the-server]__974941ed._.js.map} +0 -0
  231. /package/.next/build/chunks/{[turbopack-node]_transforms_postcss_ts_5040861e._.js.map → [turbopack-node]_transforms_postcss_ts_6920245c._.js.map} +0 -0
  232. /package/.next/server/chunks/{4c6d9__next-internal_server_app_api_endpoints_[id]_route_actions_9be426d4.js.map → _next-internal_server_app_api_endpoints_[id]_route_actions_b91cfc4c.js.map} +0 -0
  233. /package/.next/server/chunks/{4c6d9__next-internal_server_app_api_endpoints_bulk_route_actions_e28c0cd3.js.map → _next-internal_server_app_api_endpoints_bulk_route_actions_560cc6cd.js.map} +0 -0
  234. /package/.next/server/chunks/{4c6d9__next-internal_server_app_api_endpoints_import_route_actions_89a982f4.js.map → _next-internal_server_app_api_endpoints_import_route_actions_f2444950.js.map} +0 -0
  235. /package/.next/server/chunks/{4c6d9__next-internal_server_app_api_endpoints_route_actions_0c151162.js.map → _next-internal_server_app_api_endpoints_route_actions_49d8ad56.js.map} +0 -0
  236. /package/.next/server/chunks/{4c6d9__next-internal_server_app_api_endpoints_sync_route_actions_3051349a.js.map → _next-internal_server_app_api_endpoints_sync_route_actions_0f446550.js.map} +0 -0
  237. /package/.next/server/chunks/{4c6d9__next-internal_server_app_api_mock_[___slug]_route_actions_521def8c.js.map → _next-internal_server_app_api_mock_[___slug]_route_actions_be875f77.js.map} +0 -0
  238. /package/.next/server/chunks/{ced06_growth-mock-server__next-internal_server_app_favicon_ico_route_actions_b931e89c.js.map → _next-internal_server_app_favicon_ico_route_actions_353150a5.js.map} +0 -0
  239. /package/.next/server/chunks/ssr/{3d860_Project_Web_growth-mock-server__next-internal_server_app_page_actions_a455ccb7.js.map → _next-internal_server_app__global-error_page_actions_75761787.js.map} +0 -0
  240. /package/.next/server/chunks/ssr/{4c6d9__next-internal_server_app__global-error_page_actions_386af4fb.js.map → _next-internal_server_app__not-found_page_actions_554ec2bf.js.map} +0 -0
  241. /package/.next/server/chunks/ssr/{ced06_growth-mock-server__next-internal_server_app__not-found_page_actions_41a9defd.js.map → _next-internal_server_app_page_actions_39d4fc33.js.map} +0 -0
  242. /package/.next/static/{w5WtKaqxY-0FsR98k9Jhw → tHhig3FrI32oLhNopN5Nj}/_buildManifest.js +0 -0
  243. /package/.next/static/{w5WtKaqxY-0FsR98k9Jhw → tHhig3FrI32oLhNopN5Nj}/_clientMiddlewareManifest.json +0 -0
  244. /package/.next/static/{w5WtKaqxY-0FsR98k9Jhw → tHhig3FrI32oLhNopN5Nj}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../../Desktop/Project/Web/growth-mock-server/lib/validation.ts","../../../../../../../Desktop/Project/Web/growth-mock-server/node_modules/.pnpm/next%4016.1.1_%40babel%2Bcore%407.28.5_react-dom%4019.2.3_react%4019.2.3__react%4019.2.3/node_modules/next/dist/esm/build/templates/app-route.js","../../../../../../../Desktop/Project/Web/growth-mock-server/app/api/endpoints/route.ts"],"sourcesContent":["const VALID_METHODS = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', 'OPTIONS']\n\nexport function validatePath(path: unknown): path is string {\n if (!path || typeof path !== 'string') return false\n if (!path.startsWith('/')) return false\n if (path.length > 1000) return false\n return true\n}\n\nexport function validateMethod(method: unknown): method is string {\n if (typeof method !== 'string') return false\n return VALID_METHODS.includes(method.toUpperCase())\n}\n\nexport function validateStatusCode(statusCode: unknown): statusCode is number {\n if (statusCode === undefined || statusCode === null) return true // optional\n if (typeof statusCode !== 'number') return false\n return statusCode >= 100 && statusCode < 600\n}\n","import { AppRouteRouteModule } from \"next/dist/esm/server/route-modules/app-route/module.compiled\";\nimport { RouteKind } from \"next/dist/esm/server/route-kind\";\nimport { patchFetch as _patchFetch } from \"next/dist/esm/server/lib/patch-fetch\";\nimport { addRequestMeta, getRequestMeta } from \"next/dist/esm/server/request-meta\";\nimport { getTracer, SpanKind } from \"next/dist/esm/server/lib/trace/tracer\";\nimport { setManifestsSingleton } from \"next/dist/esm/server/app-render/manifests-singleton\";\nimport { normalizeAppPath } from \"next/dist/esm/shared/lib/router/utils/app-paths\";\nimport { NodeNextRequest, NodeNextResponse } from \"next/dist/esm/server/base-http/node\";\nimport { NextRequestAdapter, signalFromNodeResponse } from \"next/dist/esm/server/web/spec-extension/adapters/next-request\";\nimport { BaseServerSpan } from \"next/dist/esm/server/lib/trace/constants\";\nimport { getRevalidateReason } from \"next/dist/esm/server/instrumentation/utils\";\nimport { sendResponse } from \"next/dist/esm/server/send-response\";\nimport { fromNodeOutgoingHttpHeaders, toNodeOutgoingHttpHeaders } from \"next/dist/esm/server/web/utils\";\nimport { getCacheControlHeader } from \"next/dist/esm/server/lib/cache-control\";\nimport { INFINITE_CACHE, NEXT_CACHE_TAGS_HEADER } from \"next/dist/esm/lib/constants\";\nimport { NoFallbackError } from \"next/dist/esm/shared/lib/no-fallback-error.external\";\nimport { CachedRouteKind } from \"next/dist/esm/server/response-cache\";\nimport * as userland from \"INNER_APP_ROUTE\";\n// We inject the nextConfigOutput here so that we can use them in the route\n// module.\nconst nextConfigOutput = \"\"\nconst routeModule = new AppRouteRouteModule({\n definition: {\n kind: RouteKind.APP_ROUTE,\n page: \"/api/endpoints/route\",\n pathname: \"/api/endpoints\",\n filename: \"route\",\n bundlePath: \"\"\n },\n distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',\n relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '',\n resolvedPagePath: \"[project]/Desktop/Project/Web/growth-mock-server/app/api/endpoints/route.ts\",\n nextConfigOutput,\n userland\n});\n// Pull out the exports that we need to expose from the module. This should\n// be eliminated when we've moved the other routes to the new format. These\n// are used to hook into the route.\nconst { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;\nfunction patchFetch() {\n return _patchFetch({\n workAsyncStorage,\n workUnitAsyncStorage\n });\n}\nexport { routeModule, workAsyncStorage, workUnitAsyncStorage, serverHooks, patchFetch, };\nexport async function handler(req, res, ctx) {\n if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());\n }\n let srcPage = \"/api/endpoints/route\";\n // turbopack doesn't normalize `/index` in the page name\n // so we need to to process dynamic routes properly\n // TODO: fix turbopack providing differing value from webpack\n if (process.env.TURBOPACK) {\n srcPage = srcPage.replace(/\\/index$/, '') || '/';\n } else if (srcPage === '/index') {\n // we always normalize /index specifically\n srcPage = '/';\n }\n const multiZoneDraftMode = process.env.__NEXT_MULTI_ZONE_DRAFT_MODE;\n const prepareResult = await routeModule.prepare(req, res, {\n srcPage,\n multiZoneDraftMode\n });\n if (!prepareResult) {\n res.statusCode = 400;\n res.end('Bad Request');\n ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());\n return null;\n }\n const { buildId, params, nextConfig, parsedUrl, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest } = prepareResult;\n const normalizedSrcPage = normalizeAppPath(srcPage);\n let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || prerenderManifest.routes[resolvedPathname]);\n const render404 = async ()=>{\n // TODO: should route-module itself handle rendering the 404\n if (routerServerContext == null ? void 0 : routerServerContext.render404) {\n await routerServerContext.render404(req, res, parsedUrl, false);\n } else {\n res.end('This page could not be found');\n }\n return null;\n };\n if (isIsr && !isDraftMode) {\n const isPrerendered = Boolean(prerenderManifest.routes[resolvedPathname]);\n const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];\n if (prerenderInfo) {\n if (prerenderInfo.fallback === false && !isPrerendered) {\n if (nextConfig.experimental.adapterPath) {\n return await render404();\n }\n throw new NoFallbackError();\n }\n }\n }\n let cacheKey = null;\n if (isIsr && !routeModule.isDev && !isDraftMode) {\n cacheKey = resolvedPathname;\n // ensure /index and / is normalized to one key\n cacheKey = cacheKey === '/index' ? '/' : cacheKey;\n }\n const supportsDynamicResponse = // If we're in development, we always support dynamic HTML\n routeModule.isDev === true || // If this is not SSG or does not have static paths, then it supports\n // dynamic HTML.\n !isIsr;\n // This is a revalidation request if the request is for a static\n // page and it is not being resumed from a postponed render and\n // it is not a dynamic RSC request then it is a revalidation\n // request.\n const isStaticGeneration = isIsr && !supportsDynamicResponse;\n // Before rendering (which initializes component tree modules), we have to\n // set the reference manifests to our global store so Server Action's\n // encryption util can access to them at the top level of the page module.\n if (serverActionsManifest && clientReferenceManifest) {\n setManifestsSingleton({\n page: srcPage,\n clientReferenceManifest,\n serverActionsManifest\n });\n }\n const method = req.method || 'GET';\n const tracer = getTracer();\n const activeSpan = tracer.getActiveScopeSpan();\n const context = {\n params,\n prerenderManifest,\n renderOpts: {\n experimental: {\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts)\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n supportsDynamicResponse,\n incrementalCache: getRequestMeta(req, 'incrementalCache'),\n cacheLifeProfiles: nextConfig.cacheLife,\n waitUntil: ctx.waitUntil,\n onClose: (cb)=>{\n res.on('close', cb);\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (error, _request, errorContext, silenceLog)=>routeModule.onRequestError(req, error, errorContext, silenceLog, routerServerContext)\n },\n sharedContext: {\n buildId\n }\n };\n const nodeNextReq = new NodeNextRequest(req);\n const nodeNextRes = new NodeNextResponse(res);\n const nextReq = NextRequestAdapter.fromNodeNextRequest(nodeNextReq, signalFromNodeResponse(res));\n try {\n const invokeRouteModule = async (span)=>{\n return routeModule.handle(nextReq, context).finally(()=>{\n if (!span) return;\n span.setAttributes({\n 'http.status_code': res.statusCode,\n 'next.rsc': false\n });\n const rootSpanAttributes = tracer.getRootSpanAttributes();\n // We were unable to get attributes, probably OTEL is not enabled\n if (!rootSpanAttributes) {\n return;\n }\n if (rootSpanAttributes.get('next.span_type') !== BaseServerSpan.handleRequest) {\n console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);\n return;\n }\n const route = rootSpanAttributes.get('next.route');\n if (route) {\n const name = `${method} ${route}`;\n span.setAttributes({\n 'next.route': route,\n 'http.route': route,\n 'next.span_name': name\n });\n span.updateName(name);\n } else {\n span.updateName(`${method} ${srcPage}`);\n }\n });\n };\n const isMinimalMode = Boolean(process.env.MINIMAL_MODE || getRequestMeta(req, 'minimalMode'));\n const handleResponse = async (currentSpan)=>{\n var _cacheEntry_value;\n const responseGenerator = async ({ previousCacheEntry })=>{\n try {\n if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {\n res.statusCode = 404;\n // on-demand revalidate always sets this header\n res.setHeader('x-nextjs-cache', 'REVALIDATED');\n res.end('This page could not be found');\n return null;\n }\n const response = await invokeRouteModule(currentSpan);\n req.fetchMetrics = context.renderOpts.fetchMetrics;\n let pendingWaitUntil = context.renderOpts.pendingWaitUntil;\n // Attempt using provided waitUntil if available\n // if it's not we fallback to sendResponse's handling\n if (pendingWaitUntil) {\n if (ctx.waitUntil) {\n ctx.waitUntil(pendingWaitUntil);\n pendingWaitUntil = undefined;\n }\n }\n const cacheTags = context.renderOpts.collectedTags;\n // If the request is for a static response, we can cache it so long\n // as it's not edge.\n if (isIsr) {\n const blob = await response.blob();\n // Copy the headers from the response.\n const headers = toNodeOutgoingHttpHeaders(response.headers);\n if (cacheTags) {\n headers[NEXT_CACHE_TAGS_HEADER] = cacheTags;\n }\n if (!headers['content-type'] && blob.type) {\n headers['content-type'] = blob.type;\n }\n const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;\n const expire = typeof context.renderOpts.collectedExpire === 'undefined' || context.renderOpts.collectedExpire >= INFINITE_CACHE ? undefined : context.renderOpts.collectedExpire;\n // Create the cache entry for the response.\n const cacheEntry = {\n value: {\n kind: CachedRouteKind.APP_ROUTE,\n status: response.status,\n body: Buffer.from(await blob.arrayBuffer()),\n headers\n },\n cacheControl: {\n revalidate,\n expire\n }\n };\n return cacheEntry;\n } else {\n // send response without caching if not ISR\n await sendResponse(nodeNextReq, nodeNextRes, response, context.renderOpts.pendingWaitUntil);\n return null;\n }\n } catch (err) {\n // if this is a background revalidate we need to report\n // the request error here as it won't be bubbled\n if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: srcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n throw err;\n }\n };\n const cacheEntry = await routeModule.handleResponse({\n req,\n nextConfig,\n cacheKey,\n routeKind: RouteKind.APP_ROUTE,\n isFallback: false,\n prerenderManifest,\n isRoutePPREnabled: false,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n responseGenerator,\n waitUntil: ctx.waitUntil,\n isMinimalMode\n });\n // we don't create a cacheEntry for ISR\n if (!isIsr) {\n return null;\n }\n if ((cacheEntry == null ? void 0 : (_cacheEntry_value = cacheEntry.value) == null ? void 0 : _cacheEntry_value.kind) !== CachedRouteKind.APP_ROUTE) {\n var _cacheEntry_value1;\n throw Object.defineProperty(new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`), \"__NEXT_ERROR_CODE\", {\n value: \"E701\",\n enumerable: false,\n configurable: true\n });\n }\n if (!isMinimalMode) {\n res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');\n }\n // Draft mode should never be cached\n if (isDraftMode) {\n res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');\n }\n const headers = fromNodeOutgoingHttpHeaders(cacheEntry.value.headers);\n if (!(isMinimalMode && isIsr)) {\n headers.delete(NEXT_CACHE_TAGS_HEADER);\n }\n // If cache control is already set on the response we don't\n // override it to allow users to customize it via next.config\n if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {\n headers.set('Cache-Control', getCacheControlHeader(cacheEntry.cacheControl));\n }\n await sendResponse(nodeNextReq, nodeNextRes, // @ts-expect-error - Argument of type 'Buffer<ArrayBufferLike>' is not assignable to parameter of type 'BodyInit | null | undefined'.\n new Response(cacheEntry.value.body, {\n headers,\n status: cacheEntry.value.status || 200\n }));\n return null;\n };\n // TODO: activeSpan code path is for when wrapped by\n // next-server can be removed when this is no longer used\n if (activeSpan) {\n await handleResponse(activeSpan);\n } else {\n await tracer.withPropagatedContext(req.headers, ()=>tracer.trace(BaseServerSpan.handleRequest, {\n spanName: `${method} ${srcPage}`,\n kind: SpanKind.SERVER,\n attributes: {\n 'http.method': method,\n 'http.target': req.url\n }\n }, handleResponse));\n }\n } catch (err) {\n if (!(err instanceof NoFallbackError)) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: normalizedSrcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n // rethrow so that we can handle serving error page\n // If this is during static generation, throw the error again.\n if (isIsr) throw err;\n // Otherwise, send a 500 response.\n await sendResponse(nodeNextReq, nodeNextRes, new Response(null, {\n status: 500\n }));\n return null;\n }\n}\n\n//# sourceMappingURL=app-route.js.map\n","import { NextRequest, NextResponse } from 'next/server'\nimport { prisma } from '@/lib/prisma'\nimport { validatePath, validateMethod, validateStatusCode } from '@/lib/validation'\n\n// GET: 모든 엔드포인트 조회\nexport async function GET() {\n const endpoints = await prisma.mockEndpoint.findMany({\n orderBy: { createdAt: 'desc' },\n })\n return NextResponse.json(endpoints)\n}\n\n// POST: 새 엔드포인트 생성\nexport async function POST(request: NextRequest) {\n const body = await request.json()\n const { path, method, description, statusCode, responseBody } = body\n\n if (!validatePath(path)) {\n return NextResponse.json({ error: 'Invalid path' }, { status: 400 })\n }\n if (!validateMethod(method)) {\n return NextResponse.json({ error: 'Invalid method' }, { status: 400 })\n }\n if (!validateStatusCode(statusCode)) {\n return NextResponse.json({ error: 'Invalid status code' }, { status: 400 })\n }\n\n const endpoint = await prisma.mockEndpoint.create({\n data: {\n path,\n method: method.toUpperCase(),\n description,\n statusCode: statusCode ?? 200,\n responseBody,\n },\n })\n\n return NextResponse.json(endpoint, { status: 201 })\n}\n"],"names":[],"mappings":"8iCAAA,IAAM,EAAgB,CAAC,MAAO,OAAQ,MAAO,QAAS,SAAU,OAAQ,UAAU,CAE3E,SAAS,EAAa,CAAa,SACpC,CAAC,GAAwB,UAAhB,AAA0B,OAAnB,AAA0B,IAC1C,CAAC,EAAK,UAAU,CAAC,MAAM,EACvB,EAAK,GADyB,GACnB,CAAG,GAAA,CAEp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AAkB,CAAA,EAAA,EAAA,mBAAA,AAAmB,EAAC,oBAClC,uBACA,CACJ,EACJ,GAAG,AATgB,EASJ,GAIf,EAAO,MAAM,EAKjB,OAHA,MAAM,CAAA,EAAA,EAAA,YAAA,AAAY,EAAC,EAAa,EAAa,IAAI,SAAS,KAAM,CAC5D,OAAQ,GACZ,IACO,IACX,CACJ,EAEA,qCAAqC","ignoreList":[1]}
1
+ {"version":3,"sources":["../../../lib/validation.ts","../../../node_modules/.pnpm/next%4016.1.1_%40babel%2Bcore%407.28.5_react-dom%4019.2.3_react%4019.2.3__react%4019.2.3/node_modules/next/dist/esm/build/templates/app-route.js","../../../app/api/endpoints/route.ts"],"sourcesContent":["const VALID_METHODS = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', 'OPTIONS']\n\nexport function validatePath(path: unknown): path is string {\n if (!path || typeof path !== 'string') return false\n if (!path.startsWith('/')) return false\n if (path.length > 1000) return false\n return true\n}\n\nexport function validateMethod(method: unknown): method is string {\n if (typeof method !== 'string') return false\n return VALID_METHODS.includes(method.toUpperCase())\n}\n\nexport function validateStatusCode(statusCode: unknown): statusCode is number {\n if (statusCode === undefined || statusCode === null) return true // optional\n if (typeof statusCode !== 'number') return false\n return statusCode >= 100 && statusCode < 600\n}\n","import { AppRouteRouteModule } from \"next/dist/esm/server/route-modules/app-route/module.compiled\";\nimport { RouteKind } from \"next/dist/esm/server/route-kind\";\nimport { patchFetch as _patchFetch } from \"next/dist/esm/server/lib/patch-fetch\";\nimport { addRequestMeta, getRequestMeta } from \"next/dist/esm/server/request-meta\";\nimport { getTracer, SpanKind } from \"next/dist/esm/server/lib/trace/tracer\";\nimport { setManifestsSingleton } from \"next/dist/esm/server/app-render/manifests-singleton\";\nimport { normalizeAppPath } from \"next/dist/esm/shared/lib/router/utils/app-paths\";\nimport { NodeNextRequest, NodeNextResponse } from \"next/dist/esm/server/base-http/node\";\nimport { NextRequestAdapter, signalFromNodeResponse } from \"next/dist/esm/server/web/spec-extension/adapters/next-request\";\nimport { BaseServerSpan } from \"next/dist/esm/server/lib/trace/constants\";\nimport { getRevalidateReason } from \"next/dist/esm/server/instrumentation/utils\";\nimport { sendResponse } from \"next/dist/esm/server/send-response\";\nimport { fromNodeOutgoingHttpHeaders, toNodeOutgoingHttpHeaders } from \"next/dist/esm/server/web/utils\";\nimport { getCacheControlHeader } from \"next/dist/esm/server/lib/cache-control\";\nimport { INFINITE_CACHE, NEXT_CACHE_TAGS_HEADER } from \"next/dist/esm/lib/constants\";\nimport { NoFallbackError } from \"next/dist/esm/shared/lib/no-fallback-error.external\";\nimport { CachedRouteKind } from \"next/dist/esm/server/response-cache\";\nimport * as userland from \"INNER_APP_ROUTE\";\n// We inject the nextConfigOutput here so that we can use them in the route\n// module.\nconst nextConfigOutput = \"\"\nconst routeModule = new AppRouteRouteModule({\n definition: {\n kind: RouteKind.APP_ROUTE,\n page: \"/api/endpoints/route\",\n pathname: \"/api/endpoints\",\n filename: \"route\",\n bundlePath: \"\"\n },\n distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',\n relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '',\n resolvedPagePath: \"[project]/app/api/endpoints/route.ts\",\n nextConfigOutput,\n userland\n});\n// Pull out the exports that we need to expose from the module. This should\n// be eliminated when we've moved the other routes to the new format. These\n// are used to hook into the route.\nconst { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;\nfunction patchFetch() {\n return _patchFetch({\n workAsyncStorage,\n workUnitAsyncStorage\n });\n}\nexport { routeModule, workAsyncStorage, workUnitAsyncStorage, serverHooks, patchFetch, };\nexport async function handler(req, res, ctx) {\n if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());\n }\n let srcPage = \"/api/endpoints/route\";\n // turbopack doesn't normalize `/index` in the page name\n // so we need to to process dynamic routes properly\n // TODO: fix turbopack providing differing value from webpack\n if (process.env.TURBOPACK) {\n srcPage = srcPage.replace(/\\/index$/, '') || '/';\n } else if (srcPage === '/index') {\n // we always normalize /index specifically\n srcPage = '/';\n }\n const multiZoneDraftMode = process.env.__NEXT_MULTI_ZONE_DRAFT_MODE;\n const prepareResult = await routeModule.prepare(req, res, {\n srcPage,\n multiZoneDraftMode\n });\n if (!prepareResult) {\n res.statusCode = 400;\n res.end('Bad Request');\n ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());\n return null;\n }\n const { buildId, params, nextConfig, parsedUrl, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest } = prepareResult;\n const normalizedSrcPage = normalizeAppPath(srcPage);\n let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || prerenderManifest.routes[resolvedPathname]);\n const render404 = async ()=>{\n // TODO: should route-module itself handle rendering the 404\n if (routerServerContext == null ? void 0 : routerServerContext.render404) {\n await routerServerContext.render404(req, res, parsedUrl, false);\n } else {\n res.end('This page could not be found');\n }\n return null;\n };\n if (isIsr && !isDraftMode) {\n const isPrerendered = Boolean(prerenderManifest.routes[resolvedPathname]);\n const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];\n if (prerenderInfo) {\n if (prerenderInfo.fallback === false && !isPrerendered) {\n if (nextConfig.experimental.adapterPath) {\n return await render404();\n }\n throw new NoFallbackError();\n }\n }\n }\n let cacheKey = null;\n if (isIsr && !routeModule.isDev && !isDraftMode) {\n cacheKey = resolvedPathname;\n // ensure /index and / is normalized to one key\n cacheKey = cacheKey === '/index' ? '/' : cacheKey;\n }\n const supportsDynamicResponse = // If we're in development, we always support dynamic HTML\n routeModule.isDev === true || // If this is not SSG or does not have static paths, then it supports\n // dynamic HTML.\n !isIsr;\n // This is a revalidation request if the request is for a static\n // page and it is not being resumed from a postponed render and\n // it is not a dynamic RSC request then it is a revalidation\n // request.\n const isStaticGeneration = isIsr && !supportsDynamicResponse;\n // Before rendering (which initializes component tree modules), we have to\n // set the reference manifests to our global store so Server Action's\n // encryption util can access to them at the top level of the page module.\n if (serverActionsManifest && clientReferenceManifest) {\n setManifestsSingleton({\n page: srcPage,\n clientReferenceManifest,\n serverActionsManifest\n });\n }\n const method = req.method || 'GET';\n const tracer = getTracer();\n const activeSpan = tracer.getActiveScopeSpan();\n const context = {\n params,\n prerenderManifest,\n renderOpts: {\n experimental: {\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts)\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n supportsDynamicResponse,\n incrementalCache: getRequestMeta(req, 'incrementalCache'),\n cacheLifeProfiles: nextConfig.cacheLife,\n waitUntil: ctx.waitUntil,\n onClose: (cb)=>{\n res.on('close', cb);\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (error, _request, errorContext, silenceLog)=>routeModule.onRequestError(req, error, errorContext, silenceLog, routerServerContext)\n },\n sharedContext: {\n buildId\n }\n };\n const nodeNextReq = new NodeNextRequest(req);\n const nodeNextRes = new NodeNextResponse(res);\n const nextReq = NextRequestAdapter.fromNodeNextRequest(nodeNextReq, signalFromNodeResponse(res));\n try {\n const invokeRouteModule = async (span)=>{\n return routeModule.handle(nextReq, context).finally(()=>{\n if (!span) return;\n span.setAttributes({\n 'http.status_code': res.statusCode,\n 'next.rsc': false\n });\n const rootSpanAttributes = tracer.getRootSpanAttributes();\n // We were unable to get attributes, probably OTEL is not enabled\n if (!rootSpanAttributes) {\n return;\n }\n if (rootSpanAttributes.get('next.span_type') !== BaseServerSpan.handleRequest) {\n console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);\n return;\n }\n const route = rootSpanAttributes.get('next.route');\n if (route) {\n const name = `${method} ${route}`;\n span.setAttributes({\n 'next.route': route,\n 'http.route': route,\n 'next.span_name': name\n });\n span.updateName(name);\n } else {\n span.updateName(`${method} ${srcPage}`);\n }\n });\n };\n const isMinimalMode = Boolean(process.env.MINIMAL_MODE || getRequestMeta(req, 'minimalMode'));\n const handleResponse = async (currentSpan)=>{\n var _cacheEntry_value;\n const responseGenerator = async ({ previousCacheEntry })=>{\n try {\n if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {\n res.statusCode = 404;\n // on-demand revalidate always sets this header\n res.setHeader('x-nextjs-cache', 'REVALIDATED');\n res.end('This page could not be found');\n return null;\n }\n const response = await invokeRouteModule(currentSpan);\n req.fetchMetrics = context.renderOpts.fetchMetrics;\n let pendingWaitUntil = context.renderOpts.pendingWaitUntil;\n // Attempt using provided waitUntil if available\n // if it's not we fallback to sendResponse's handling\n if (pendingWaitUntil) {\n if (ctx.waitUntil) {\n ctx.waitUntil(pendingWaitUntil);\n pendingWaitUntil = undefined;\n }\n }\n const cacheTags = context.renderOpts.collectedTags;\n // If the request is for a static response, we can cache it so long\n // as it's not edge.\n if (isIsr) {\n const blob = await response.blob();\n // Copy the headers from the response.\n const headers = toNodeOutgoingHttpHeaders(response.headers);\n if (cacheTags) {\n headers[NEXT_CACHE_TAGS_HEADER] = cacheTags;\n }\n if (!headers['content-type'] && blob.type) {\n headers['content-type'] = blob.type;\n }\n const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;\n const expire = typeof context.renderOpts.collectedExpire === 'undefined' || context.renderOpts.collectedExpire >= INFINITE_CACHE ? undefined : context.renderOpts.collectedExpire;\n // Create the cache entry for the response.\n const cacheEntry = {\n value: {\n kind: CachedRouteKind.APP_ROUTE,\n status: response.status,\n body: Buffer.from(await blob.arrayBuffer()),\n headers\n },\n cacheControl: {\n revalidate,\n expire\n }\n };\n return cacheEntry;\n } else {\n // send response without caching if not ISR\n await sendResponse(nodeNextReq, nodeNextRes, response, context.renderOpts.pendingWaitUntil);\n return null;\n }\n } catch (err) {\n // if this is a background revalidate we need to report\n // the request error here as it won't be bubbled\n if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: srcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n throw err;\n }\n };\n const cacheEntry = await routeModule.handleResponse({\n req,\n nextConfig,\n cacheKey,\n routeKind: RouteKind.APP_ROUTE,\n isFallback: false,\n prerenderManifest,\n isRoutePPREnabled: false,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n responseGenerator,\n waitUntil: ctx.waitUntil,\n isMinimalMode\n });\n // we don't create a cacheEntry for ISR\n if (!isIsr) {\n return null;\n }\n if ((cacheEntry == null ? void 0 : (_cacheEntry_value = cacheEntry.value) == null ? void 0 : _cacheEntry_value.kind) !== CachedRouteKind.APP_ROUTE) {\n var _cacheEntry_value1;\n throw Object.defineProperty(new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`), \"__NEXT_ERROR_CODE\", {\n value: \"E701\",\n enumerable: false,\n configurable: true\n });\n }\n if (!isMinimalMode) {\n res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');\n }\n // Draft mode should never be cached\n if (isDraftMode) {\n res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');\n }\n const headers = fromNodeOutgoingHttpHeaders(cacheEntry.value.headers);\n if (!(isMinimalMode && isIsr)) {\n headers.delete(NEXT_CACHE_TAGS_HEADER);\n }\n // If cache control is already set on the response we don't\n // override it to allow users to customize it via next.config\n if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {\n headers.set('Cache-Control', getCacheControlHeader(cacheEntry.cacheControl));\n }\n await sendResponse(nodeNextReq, nodeNextRes, // @ts-expect-error - Argument of type 'Buffer<ArrayBufferLike>' is not assignable to parameter of type 'BodyInit | null | undefined'.\n new Response(cacheEntry.value.body, {\n headers,\n status: cacheEntry.value.status || 200\n }));\n return null;\n };\n // TODO: activeSpan code path is for when wrapped by\n // next-server can be removed when this is no longer used\n if (activeSpan) {\n await handleResponse(activeSpan);\n } else {\n await tracer.withPropagatedContext(req.headers, ()=>tracer.trace(BaseServerSpan.handleRequest, {\n spanName: `${method} ${srcPage}`,\n kind: SpanKind.SERVER,\n attributes: {\n 'http.method': method,\n 'http.target': req.url\n }\n }, handleResponse));\n }\n } catch (err) {\n if (!(err instanceof NoFallbackError)) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: normalizedSrcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n // rethrow so that we can handle serving error page\n // If this is during static generation, throw the error again.\n if (isIsr) throw err;\n // Otherwise, send a 500 response.\n await sendResponse(nodeNextReq, nodeNextRes, new Response(null, {\n status: 500\n }));\n return null;\n }\n}\n\n//# sourceMappingURL=app-route.js.map\n","import { NextRequest, NextResponse } from 'next/server'\nimport { prisma } from '@/lib/prisma'\nimport { validatePath, validateMethod, validateStatusCode } from '@/lib/validation'\n\n// GET: 모든 엔드포인트 조회\nexport async function GET() {\n const endpoints = await prisma.mockEndpoint.findMany({\n orderBy: { createdAt: 'desc' },\n })\n return NextResponse.json(endpoints)\n}\n\n// POST: 새 엔드포인트 생성\nexport async function POST(request: NextRequest) {\n const body = await request.json()\n const { path, method, description, statusCode, responseBody } = body\n\n if (!validatePath(path)) {\n return NextResponse.json({ error: 'Invalid path' }, { status: 400 })\n }\n if (!validateMethod(method)) {\n return NextResponse.json({ error: 'Invalid method' }, { status: 400 })\n }\n if (!validateStatusCode(statusCode)) {\n return NextResponse.json({ error: 'Invalid status code' }, { status: 400 })\n }\n\n const endpoint = await prisma.mockEndpoint.create({\n data: {\n path,\n method: method.toUpperCase(),\n description,\n statusCode: statusCode ?? 200,\n responseBody,\n },\n })\n\n return NextResponse.json(endpoint, { status: 201 })\n}\n"],"names":[],"mappings":"8iCAAA,IAAM,EAAgB,CAAC,MAAO,OAAQ,MAAO,QAAS,SAAU,OAAQ,UAAU,CAE3E,SAAS,EAAa,CAAa,SACpC,CAAC,GAAwB,UAAhB,AAA0B,OAAnB,AAA0B,IAC1C,CAAC,EAAK,UAAU,CAAC,MAAM,EACvB,EAAK,GADyB,GACnB,CAAG,GAAA,CAEpB,CAEO,CAJmB,OAAO,CAIjB,EAAe,CAAe,QAC5C,AAAsB,UAAlB,AAA4B,OAArB,AAA4B,GAChC,EAAc,QAAQ,CAAC,EAAO,WAAW,GAClD,CAEO,SAAS,EAAmB,CAAmB,SACpD,MAAI,GACsB,UAAtB,AAAgC,EADjB,KACwB,AAAhC,GACJ,GAAc,EAFW,GAEJ,EAAa,GAC3C,OAHiD,MAAM,OAAO,KAAK,WAAW,mECf9E,IAAA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,MACA,EAAA,EAAA,CAAA,CAAA,MACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,CAAA,CAAA,OAAA,IAAA,EAAA,EAAA,CAAA,CAAA,MChBA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CA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AK,CAAC,EAAA,cAAc,CAAC,aAAa,CAAE,CACvF,SAAU,CAAA,EAAG,EAAO,CAAC,EAAE,EAAA,CAAS,CAChC,KAAM,EAAA,QAAQ,CAAC,MAAM,CACrB,WAAY,CACR,cAAe,EACf,cAAe,EAAI,GAAG,AAC1B,CACJ,EAAG,GAEf,CAAE,MAAO,EAAK,CAeV,GAdM,aAAe,EAAA,eAAe,EAEhC,CAFmC,KAE7B,EAAY,cAAc,CAAC,EAAK,EAAK,CACvC,WAAY,aACZ,UAAW,EACX,UAAW,QACX,iBAAkB,CAAA,EAAA,EAAA,mBAAA,AAAmB,EAAC,oBAClC,uBACA,CACJ,EACJ,GAAG,AATgB,EASJ,GAIf,EAAO,MAAM,EAKjB,OAHA,MAAM,CAAA,EAAA,EAAA,YAAA,AAAY,EAAC,EAAa,EAAa,IAAI,SAAS,KAAM,CAC5D,OAAQ,GACZ,IACO,IACX,CACJ,EAEA,qCAAqC","ignoreList":[1]}
@@ -0,0 +1,3 @@
1
+ module.exports=[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"))},9201,e=>{"use strict";var t=e.i(76147),r=e.i(56511),a=e.i(40081),n=e.i(53394),s=e.i(7311),i=e.i(5355),o=e.i(13134),l=e.i(48155),d=e.i(70062),u=e.i(48775),p=e.i(52469),c=e.i(99913),h=e.i(44884),x=e.i(41513),R=e.i(21943),v=e.i(93695);e.i(12197);var f=e.i(5810),g=e.i(61844),m=e.i(15270);async function E(e){let{ids:t}=await e.json();if(!Array.isArray(t)||0===t.length)return g.NextResponse.json({error:"ids must be a non-empty array"},{status:400});let r=await m.prisma.mockEndpoint.deleteMany({where:{id:{in:t}}});return g.NextResponse.json({deleted:r.count})}e.s(["DELETE",()=>E],24759);var w=e.i(24759);let y=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/endpoints/bulk/route",pathname:"/api/endpoints/bulk",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/endpoints/bulk/route.ts",nextConfigOutput:"",userland:w}),{workAsyncStorage:C,workUnitAsyncStorage:b,serverHooks:A}=y;function k(){return(0,a.patchFetch)({workAsyncStorage:C,workUnitAsyncStorage:b})}async function N(e,t,a){y.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let g="/api/endpoints/bulk/route";g=g.replace(/\/index$/,"")||"/";let m=await y.prepare(e,t,{srcPage:g,multiZoneDraftMode:!1});if(!m)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:E,params:w,nextConfig:C,parsedUrl:b,isDraftMode:A,prerenderManifest:k,routerServerContext:N,isOnDemandRevalidate:T,revalidateOnlyGenerated:P,resolvedPathname:q,clientReferenceManifest:O,serverActionsManifest:j}=m,_=(0,o.normalizeAppPath)(g),S=!!(k.dynamicRoutes[_]||k.routes[q]),H=async()=>((null==N?void 0:N.render404)?await N.render404(e,t,b,!1):t.end("This page could not be found"),null);if(S&&!A){let e=!!k.routes[q],t=k.dynamicRoutes[_];if(t&&!1===t.fallback&&!e){if(C.experimental.adapterPath)return await H();throw new v.NoFallbackError}}let U=null;!S||y.isDev||A||(U="/index"===(U=q)?"/":U);let I=!0===y.isDev||!S,D=S&&!I;j&&O&&(0,i.setManifestsSingleton)({page:g,clientReferenceManifest:O,serverActionsManifest:j});let M=e.method||"GET",$=(0,s.getTracer)(),F=$.getActiveScopeSpan(),K={params:w,prerenderManifest:k,renderOpts:{experimental:{authInterrupts:!!C.experimental.authInterrupts},cacheComponents:!!C.cacheComponents,supportsDynamicResponse:I,incrementalCache:(0,n.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:C.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>y.onRequestError(e,t,a,n,N)},sharedContext:{buildId:E}},L=new l.NodeNextRequest(e),B=new l.NodeNextResponse(t),G=d.NextRequestAdapter.fromNodeNextRequest(L,(0,d.signalFromNodeResponse)(t));try{let i=async e=>y.handle(G,K).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=$.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.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=`${M} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t)}else e.updateName(`${M} ${g}`)}),o=!!(0,n.getRequestMeta)(e,"minimalMode"),l=async n=>{var s,l;let d=async({previousCacheEntry:r})=>{try{if(!o&&T&&P&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await i(n);e.fetchMetrics=K.renderOpts.fetchMetrics;let l=K.renderOpts.pendingWaitUntil;l&&a.waitUntil&&(a.waitUntil(l),l=void 0);let d=K.renderOpts.collectedTags;if(!S)return await (0,c.sendResponse)(L,B,s,K.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(s.headers);d&&(t[R.NEXT_CACHE_TAGS_HEADER]=d),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==K.renderOpts.collectedRevalidate&&!(K.renderOpts.collectedRevalidate>=R.INFINITE_CACHE)&&K.renderOpts.collectedRevalidate,a=void 0===K.renderOpts.collectedExpire||K.renderOpts.collectedExpire>=R.INFINITE_CACHE?void 0:K.renderOpts.collectedExpire;return{value:{kind:f.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await y.onRequestError(e,t,{routerKind:"App Router",routePath:g,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:T})},!1,N),t}},u=await y.handleResponse({req:e,nextConfig:C,cacheKey:U,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:k,isRoutePPREnabled:!1,isOnDemandRevalidate:T,revalidateOnlyGenerated:P,responseGenerator:d,waitUntil:a.waitUntil,isMinimalMode:o});if(!S)return null;if((null==u||null==(s=u.value)?void 0:s.kind)!==f.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(l=u.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});o||t.setHeader("x-nextjs-cache",T?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),A&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let v=(0,h.fromNodeOutgoingHttpHeaders)(u.value.headers);return o&&S||v.delete(R.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||v.get("Cache-Control")||v.set("Cache-Control",(0,x.getCacheControlHeader)(u.cacheControl)),await (0,c.sendResponse)(L,B,new Response(u.value.body,{headers:v,status:u.value.status||200})),null};F?await l(F):await $.withPropagatedContext(e.headers,()=>$.trace(u.BaseServerSpan.handleRequest,{spanName:`${M} ${g}`,kind:s.SpanKind.SERVER,attributes:{"http.method":M,"http.target":e.url}},l))}catch(t){if(t instanceof v.NoFallbackError||await y.onRequestError(e,t,{routerKind:"App Router",routePath:_,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:T})},!1,N),S)throw t;return await (0,c.sendResponse)(L,B,new Response(null,{status:500})),null}}e.s(["handler",()=>N,"patchFetch",()=>k,"routeModule",()=>y,"serverHooks",()=>A,"workAsyncStorage",()=>C,"workUnitAsyncStorage",()=>b],9201)}];
2
+
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__e46f3e25._.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../node_modules/.pnpm/next%4016.1.1_%40babel%2Bcore%407.28.5_react-dom%4019.2.3_react%4019.2.3__react%4019.2.3/node_modules/next/dist/esm/build/templates/app-route.js","../../../app/api/endpoints/bulk/route.ts"],"sourcesContent":["import { AppRouteRouteModule } from \"next/dist/esm/server/route-modules/app-route/module.compiled\";\nimport { RouteKind } from \"next/dist/esm/server/route-kind\";\nimport { patchFetch as _patchFetch } from \"next/dist/esm/server/lib/patch-fetch\";\nimport { addRequestMeta, getRequestMeta } from \"next/dist/esm/server/request-meta\";\nimport { getTracer, SpanKind } from \"next/dist/esm/server/lib/trace/tracer\";\nimport { setManifestsSingleton } from \"next/dist/esm/server/app-render/manifests-singleton\";\nimport { normalizeAppPath } from \"next/dist/esm/shared/lib/router/utils/app-paths\";\nimport { NodeNextRequest, NodeNextResponse } from \"next/dist/esm/server/base-http/node\";\nimport { NextRequestAdapter, signalFromNodeResponse } from \"next/dist/esm/server/web/spec-extension/adapters/next-request\";\nimport { BaseServerSpan } from \"next/dist/esm/server/lib/trace/constants\";\nimport { getRevalidateReason } from \"next/dist/esm/server/instrumentation/utils\";\nimport { sendResponse } from \"next/dist/esm/server/send-response\";\nimport { fromNodeOutgoingHttpHeaders, toNodeOutgoingHttpHeaders } from \"next/dist/esm/server/web/utils\";\nimport { getCacheControlHeader } from \"next/dist/esm/server/lib/cache-control\";\nimport { INFINITE_CACHE, NEXT_CACHE_TAGS_HEADER } from \"next/dist/esm/lib/constants\";\nimport { NoFallbackError } from \"next/dist/esm/shared/lib/no-fallback-error.external\";\nimport { CachedRouteKind } from \"next/dist/esm/server/response-cache\";\nimport * as userland from \"INNER_APP_ROUTE\";\n// We inject the nextConfigOutput here so that we can use them in the route\n// module.\nconst nextConfigOutput = \"\"\nconst routeModule = new AppRouteRouteModule({\n definition: {\n kind: RouteKind.APP_ROUTE,\n page: \"/api/endpoints/bulk/route\",\n pathname: \"/api/endpoints/bulk\",\n filename: \"route\",\n bundlePath: \"\"\n },\n distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',\n relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '',\n resolvedPagePath: \"[project]/app/api/endpoints/bulk/route.ts\",\n nextConfigOutput,\n userland\n});\n// Pull out the exports that we need to expose from the module. This should\n// be eliminated when we've moved the other routes to the new format. These\n// are used to hook into the route.\nconst { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;\nfunction patchFetch() {\n return _patchFetch({\n workAsyncStorage,\n workUnitAsyncStorage\n });\n}\nexport { routeModule, workAsyncStorage, workUnitAsyncStorage, serverHooks, patchFetch, };\nexport async function handler(req, res, ctx) {\n if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());\n }\n let srcPage = \"/api/endpoints/bulk/route\";\n // turbopack doesn't normalize `/index` in the page name\n // so we need to to process dynamic routes properly\n // TODO: fix turbopack providing differing value from webpack\n if (process.env.TURBOPACK) {\n srcPage = srcPage.replace(/\\/index$/, '') || '/';\n } else if (srcPage === '/index') {\n // we always normalize /index specifically\n srcPage = '/';\n }\n const multiZoneDraftMode = process.env.__NEXT_MULTI_ZONE_DRAFT_MODE;\n const prepareResult = await routeModule.prepare(req, res, {\n srcPage,\n multiZoneDraftMode\n });\n if (!prepareResult) {\n res.statusCode = 400;\n res.end('Bad Request');\n ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());\n return null;\n }\n const { buildId, params, nextConfig, parsedUrl, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest } = prepareResult;\n const normalizedSrcPage = normalizeAppPath(srcPage);\n let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || prerenderManifest.routes[resolvedPathname]);\n const render404 = async ()=>{\n // TODO: should route-module itself handle rendering the 404\n if (routerServerContext == null ? void 0 : routerServerContext.render404) {\n await routerServerContext.render404(req, res, parsedUrl, false);\n } else {\n res.end('This page could not be found');\n }\n return null;\n };\n if (isIsr && !isDraftMode) {\n const isPrerendered = Boolean(prerenderManifest.routes[resolvedPathname]);\n const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];\n if (prerenderInfo) {\n if (prerenderInfo.fallback === false && !isPrerendered) {\n if (nextConfig.experimental.adapterPath) {\n return await render404();\n }\n throw new NoFallbackError();\n }\n }\n }\n let cacheKey = null;\n if (isIsr && !routeModule.isDev && !isDraftMode) {\n cacheKey = resolvedPathname;\n // ensure /index and / is normalized to one key\n cacheKey = cacheKey === '/index' ? '/' : cacheKey;\n }\n const supportsDynamicResponse = // If we're in development, we always support dynamic HTML\n routeModule.isDev === true || // If this is not SSG or does not have static paths, then it supports\n // dynamic HTML.\n !isIsr;\n // This is a revalidation request if the request is for a static\n // page and it is not being resumed from a postponed render and\n // it is not a dynamic RSC request then it is a revalidation\n // request.\n const isStaticGeneration = isIsr && !supportsDynamicResponse;\n // Before rendering (which initializes component tree modules), we have to\n // set the reference manifests to our global store so Server Action's\n // encryption util can access to them at the top level of the page module.\n if (serverActionsManifest && clientReferenceManifest) {\n setManifestsSingleton({\n page: srcPage,\n clientReferenceManifest,\n serverActionsManifest\n });\n }\n const method = req.method || 'GET';\n const tracer = getTracer();\n const activeSpan = tracer.getActiveScopeSpan();\n const context = {\n params,\n prerenderManifest,\n renderOpts: {\n experimental: {\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts)\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n supportsDynamicResponse,\n incrementalCache: getRequestMeta(req, 'incrementalCache'),\n cacheLifeProfiles: nextConfig.cacheLife,\n waitUntil: ctx.waitUntil,\n onClose: (cb)=>{\n res.on('close', cb);\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (error, _request, errorContext, silenceLog)=>routeModule.onRequestError(req, error, errorContext, silenceLog, routerServerContext)\n },\n sharedContext: {\n buildId\n }\n };\n const nodeNextReq = new NodeNextRequest(req);\n const nodeNextRes = new NodeNextResponse(res);\n const nextReq = NextRequestAdapter.fromNodeNextRequest(nodeNextReq, signalFromNodeResponse(res));\n try {\n const invokeRouteModule = async (span)=>{\n return routeModule.handle(nextReq, context).finally(()=>{\n if (!span) return;\n span.setAttributes({\n 'http.status_code': res.statusCode,\n 'next.rsc': false\n });\n const rootSpanAttributes = tracer.getRootSpanAttributes();\n // We were unable to get attributes, probably OTEL is not enabled\n if (!rootSpanAttributes) {\n return;\n }\n if (rootSpanAttributes.get('next.span_type') !== BaseServerSpan.handleRequest) {\n console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);\n return;\n }\n const route = rootSpanAttributes.get('next.route');\n if (route) {\n const name = `${method} ${route}`;\n span.setAttributes({\n 'next.route': route,\n 'http.route': route,\n 'next.span_name': name\n });\n span.updateName(name);\n } else {\n span.updateName(`${method} ${srcPage}`);\n }\n });\n };\n const isMinimalMode = Boolean(process.env.MINIMAL_MODE || getRequestMeta(req, 'minimalMode'));\n const handleResponse = async (currentSpan)=>{\n var _cacheEntry_value;\n const responseGenerator = async ({ previousCacheEntry })=>{\n try {\n if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {\n res.statusCode = 404;\n // on-demand revalidate always sets this header\n res.setHeader('x-nextjs-cache', 'REVALIDATED');\n res.end('This page could not be found');\n return null;\n }\n const response = await invokeRouteModule(currentSpan);\n req.fetchMetrics = context.renderOpts.fetchMetrics;\n let pendingWaitUntil = context.renderOpts.pendingWaitUntil;\n // Attempt using provided waitUntil if available\n // if it's not we fallback to sendResponse's handling\n if (pendingWaitUntil) {\n if (ctx.waitUntil) {\n ctx.waitUntil(pendingWaitUntil);\n pendingWaitUntil = undefined;\n }\n }\n const cacheTags = context.renderOpts.collectedTags;\n // If the request is for a static response, we can cache it so long\n // as it's not edge.\n if (isIsr) {\n const blob = await response.blob();\n // Copy the headers from the response.\n const headers = toNodeOutgoingHttpHeaders(response.headers);\n if (cacheTags) {\n headers[NEXT_CACHE_TAGS_HEADER] = cacheTags;\n }\n if (!headers['content-type'] && blob.type) {\n headers['content-type'] = blob.type;\n }\n const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;\n const expire = typeof context.renderOpts.collectedExpire === 'undefined' || context.renderOpts.collectedExpire >= INFINITE_CACHE ? undefined : context.renderOpts.collectedExpire;\n // Create the cache entry for the response.\n const cacheEntry = {\n value: {\n kind: CachedRouteKind.APP_ROUTE,\n status: response.status,\n body: Buffer.from(await blob.arrayBuffer()),\n headers\n },\n cacheControl: {\n revalidate,\n expire\n }\n };\n return cacheEntry;\n } else {\n // send response without caching if not ISR\n await sendResponse(nodeNextReq, nodeNextRes, response, context.renderOpts.pendingWaitUntil);\n return null;\n }\n } catch (err) {\n // if this is a background revalidate we need to report\n // the request error here as it won't be bubbled\n if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: srcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n throw err;\n }\n };\n const cacheEntry = await routeModule.handleResponse({\n req,\n nextConfig,\n cacheKey,\n routeKind: RouteKind.APP_ROUTE,\n isFallback: false,\n prerenderManifest,\n isRoutePPREnabled: false,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n responseGenerator,\n waitUntil: ctx.waitUntil,\n isMinimalMode\n });\n // we don't create a cacheEntry for ISR\n if (!isIsr) {\n return null;\n }\n if ((cacheEntry == null ? void 0 : (_cacheEntry_value = cacheEntry.value) == null ? void 0 : _cacheEntry_value.kind) !== CachedRouteKind.APP_ROUTE) {\n var _cacheEntry_value1;\n throw Object.defineProperty(new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`), \"__NEXT_ERROR_CODE\", {\n value: \"E701\",\n enumerable: false,\n configurable: true\n });\n }\n if (!isMinimalMode) {\n res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');\n }\n // Draft mode should never be cached\n if (isDraftMode) {\n res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');\n }\n const headers = fromNodeOutgoingHttpHeaders(cacheEntry.value.headers);\n if (!(isMinimalMode && isIsr)) {\n headers.delete(NEXT_CACHE_TAGS_HEADER);\n }\n // If cache control is already set on the response we don't\n // override it to allow users to customize it via next.config\n if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {\n headers.set('Cache-Control', getCacheControlHeader(cacheEntry.cacheControl));\n }\n await sendResponse(nodeNextReq, nodeNextRes, // @ts-expect-error - Argument of type 'Buffer<ArrayBufferLike>' is not assignable to parameter of type 'BodyInit | null | undefined'.\n new Response(cacheEntry.value.body, {\n headers,\n status: cacheEntry.value.status || 200\n }));\n return null;\n };\n // TODO: activeSpan code path is for when wrapped by\n // next-server can be removed when this is no longer used\n if (activeSpan) {\n await handleResponse(activeSpan);\n } else {\n await tracer.withPropagatedContext(req.headers, ()=>tracer.trace(BaseServerSpan.handleRequest, {\n spanName: `${method} ${srcPage}`,\n kind: SpanKind.SERVER,\n attributes: {\n 'http.method': method,\n 'http.target': req.url\n }\n }, handleResponse));\n }\n } catch (err) {\n if (!(err instanceof NoFallbackError)) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: normalizedSrcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n // rethrow so that we can handle serving error page\n // If this is during static generation, throw the error again.\n if (isIsr) throw err;\n // Otherwise, send a 500 response.\n await sendResponse(nodeNextReq, nodeNextRes, new Response(null, {\n status: 500\n }));\n return null;\n }\n}\n\n//# sourceMappingURL=app-route.js.map\n","import { NextRequest, NextResponse } from 'next/server'\nimport { prisma } from '@/lib/prisma'\n\n// DELETE: 여러 엔드포인트 일괄 삭제\nexport async function DELETE(request: NextRequest) {\n const body = await request.json()\n const { ids } = body\n\n if (!Array.isArray(ids) || ids.length === 0) {\n return NextResponse.json(\n { error: 'ids must be a non-empty array' },\n { status: 400 }\n )\n }\n\n const result = await prisma.mockEndpoint.deleteMany({\n where: {\n id: { in: ids },\n },\n })\n\n return NextResponse.json({ deleted: result.count })\n}\n"],"names":[],"mappings":"6iCAAA,IAAA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,MACA,EAAA,EAAA,CAAA,CAAA,MACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CA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,EAAA,eAAe,EAEhC,CAFmC,KAE7B,EAAY,cAAc,CAAC,EAAK,EAAK,CACvC,WAAY,aACZ,UAAW,EACX,UAAW,QACX,iBAAkB,CAAA,EAAA,EAAA,mBAAA,AAAmB,EAAC,oBAClC,uBACA,CACJ,EACJ,GAAG,AATgB,EASJ,GAIf,EAAO,MAAM,EAKjB,OAHA,MAAM,CAAA,EAAA,EAAA,YAAA,AAAY,EAAC,EAAa,EAAa,IAAI,SAAS,KAAM,CAC5D,OAAQ,GACZ,IACO,IACX,CACJ,EAEA,qCAAqC","ignoreList":[0]}
@@ -1,5 +1,5 @@
1
1
  const RUNTIME_PUBLIC_PATH = "server/chunks/[turbopack]_runtime.js";
2
- const RELATIVE_ROOT_PATH = "../../../../..";
2
+ const RELATIVE_ROOT_PATH = "..";
3
3
  const ASSET_PREFIX = "/";
4
4
  /**
5
5
  * This file contains runtime types and functions that are shared between all
@@ -0,0 +1,3 @@
1
+ module.exports=[62008,(e,o,d)=>{}];
2
+
3
+ //# sourceMappingURL=_next-internal_server_app_api_endpoints_%5Bid%5D_route_actions_b91cfc4c.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[50784,(e,o,d)=>{}];
2
+
3
+ //# sourceMappingURL=_next-internal_server_app_api_endpoints_bulk_route_actions_560cc6cd.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[77893,(e,o,d)=>{}];
2
+
3
+ //# sourceMappingURL=_next-internal_server_app_api_endpoints_import_route_actions_f2444950.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[28678,(e,o,d)=>{}];
2
+
3
+ //# sourceMappingURL=_next-internal_server_app_api_endpoints_route_actions_49d8ad56.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[85738,(e,o,d)=>{}];
2
+
3
+ //# sourceMappingURL=_next-internal_server_app_api_endpoints_sync_route_actions_0f446550.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[25027,(e,o,d)=>{}];
2
+
3
+ //# sourceMappingURL=_next-internal_server_app_api_mock_%5B___slug%5D_route_actions_be875f77.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[15934,(e,o,d)=>{}];
2
+
3
+ //# sourceMappingURL=_next-internal_server_app_favicon_ico_route_actions_353150a5.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[59331,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.PathError=n.TokenData=void 0,n.parse=p,n.compile=function(e,t={}){let{encode:n=encodeURIComponent,delimiter:a="/"}=t,o=function e(t,n,a){let o=t.map(t=>(function(t,n,a){if("text"===t.type)return()=>[t.value];if("group"===t.type){let r=e(t.tokens,n,a);return e=>{let[t,...n]=r(e);return n.length?[""]:[t]}}let o=a||r;return"wildcard"===t.type&&!1!==a?e=>{let r=e[t.name];if(null==r)return["",t.name];if(!Array.isArray(r)||0===r.length)throw TypeError(`Expected "${t.name}" to be a non-empty array`);return[r.map((e,n)=>{if("string"!=typeof e)throw TypeError(`Expected "${t.name}/${n}" to be a string`);return o(e)}).join(n)]}:e=>{let n=e[t.name];if(null==n)return["",t.name];if("string"!=typeof n)throw TypeError(`Expected "${t.name}" to be a string`);return[o(n)]}})(t,n,a));return e=>{let t=[""];for(let n of o){let[r,...a]=n(e);t[0]+=r,t.push(...a)}return t}}(("object"==typeof e?e:p(e,t)).tokens,a,n);return function(e={}){let[t,...n]=o(e);if(n.length)throw TypeError(`Missing parameters: ${n.join(", ")}`);return t}},n.match=function(e,t={}){let{decode:n=decodeURIComponent,delimiter:a="/"}=t,{regexp:o,keys:i}=c(e,t),s=i.map(e=>!1===n?r:"param"===e.type?n:e=>e.split(a).map(n));return function(e){let t=o.exec(e);if(!t)return!1;let n=t[0],r=Object.create(null);for(let e=1;e<t.length;e++){if(void 0===t[e])continue;let n=i[e-1],a=s[e-1];r[n.name]=a(t[e])}return{path:n,params:r}}},n.pathToRegexp=c,n.stringify=function(e){return function e(t){let n="",r=0;function i(e){var n;return!function(e){let[t,...n]=e;return a.test(t)&&n.every(e=>o.test(e))}(e)||(n=t[r])&&"text"===n.type&&o.test(n.value[0])?JSON.stringify(e):e}for(;r<t.length;){let a=t[r++];if("text"===a.type){n+=a.value.replace(/[{}()\[\]+?!:*\\]/g,"\\$&");continue}if("group"===a.type){n+=`{${e(a.tokens)}}`;continue}if("param"===a.type){n+=`:${i(a.name)}`;continue}if("wildcard"===a.type){n+=`*${i(a.name)}`;continue}throw TypeError(`Unknown token type: ${a.type}`)}return n}(e.tokens)};let r=e=>e,a=/^[$_\p{ID_Start}]$/u,o=/^[$\u200c\u200d\p{ID_Continue}]$/u,i={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function s(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}class l{constructor(e,t){this.tokens=e,this.originalPath=t}}n.TokenData=l;class u extends TypeError{constructor(e,t){let n=e;t&&(n+=`: ${t}`),super(n+="; visit https://git.new/pathToRegexpError for info"),this.originalPath=t}}function p(e,t={}){let{encodePath:n=r}=t,s=[...e],c=[],d=0,f=0;function h(){let t="";if(a.test(s[d]))do t+=s[d++];while(o.test(s[d]))else if('"'===s[d]){let n=d;for(;d++<s.length;){if('"'===s[d]){d++,n=0;break}"\\"===s[d]&&d++,t+=s[d]}if(n)throw new u(`Unterminated quote at index ${n}`,e)}if(!t)throw new u(`Missing parameter name at index ${d}`,e);return t}for(;d<s.length;){let e=s[d],t=i[e];t?c.push({type:t,index:d++,value:e}):"\\"===e?c.push({type:"escape",index:d++,value:s[d++]}):":"===e?c.push({type:"param",index:d++,value:h()}):"*"===e?c.push({type:"wildcard",index:d++,value:h()}):c.push({type:"char",index:d++,value:e})}return c.push({type:"end",index:d,value:""}),new l(function t(r){let a=[];for(;;){let o=c[f++];if(o.type===r)break;if("char"===o.type||"escape"===o.type){let e=o.value,t=c[f];for(;"char"===t.type||"escape"===t.type;)e+=t.value,t=c[++f];a.push({type:"text",value:n(e)});continue}if("param"===o.type||"wildcard"===o.type){a.push({type:o.type,name:o.value});continue}if("{"===o.type){a.push({type:"group",tokens:t("}")});continue}throw new u(`Unexpected ${o.type} at index ${o.index}, expected ${r}`,e)}return a}("end"),e)}n.PathError=u;function c(e,t={}){let{delimiter:n="/",end:r=!0,sensitive:a=!1,trailing:o=!0}=t,i=[],l=[];for(let r of function e(t,n){if(Array.isArray(t))for(let r of t)e(r,n);else n.push(t);return n}(e,[])){let e="object"==typeof r?r:p(r,t);for(let t of function* e(t,n,r){if(n===t.length)return yield r;let a=t[n];if("group"===a.type)for(let o of e(a.tokens,0,r.slice()))yield*e(t,n+1,o);else r.push(a);yield*e(t,n+1,r)}(e.tokens,0,[]))l.push(function(e,t,n,r){let a="",o="",i=!0;for(let c of e){if("text"===c.type){a+=s(c.value),o+=c.value,i||(i=c.value.includes(t));continue}if("param"===c.type||"wildcard"===c.type){var l,p;if(!i&&!o)throw new u(`Missing text before "${c.name}" ${c.type}`,r);"param"===c.type?a+=`(${l=t,(p=i?"":o).length<2?l.length<2?`[^${s(l+p)}]`:`(?:(?!${s(l)})[^${s(p)}])`:l.length<2?`(?:(?!${s(p)})[^${s(l)}])`:`(?:(?!${s(p)}|${s(l)})[\\s\\S])`}+)`:a+="([\\s\\S]+)",n.push(c),o="",i=!1;continue}}return a}(t,n,i,e.originalPath))}let d=`^(?:${l.join("|")})`;return o&&(d+=`(?:${s(n)}$)?`),{regexp:new RegExp(d+=r?"$":`(?=${s(n)}|$)`,a?"":"i"),keys:i}}},69039,e=>{"use strict";var t=e.i(76147),n=e.i(56511),r=e.i(40081),a=e.i(53394),o=e.i(7311),i=e.i(5355),s=e.i(13134),l=e.i(48155),u=e.i(70062),p=e.i(48775),c=e.i(52469),d=e.i(99913),f=e.i(44884),h=e.i(41513),y=e.i(21943),m=e.i(93695);e.i(12197);var g=e.i(5810),v=e.i(61844),R=e.i(59331),w=e.i(15270);async function E(e,t){let n=await w.prisma.mockEndpoint.findMany({where:{method:t}}),r=n.find(t=>t.path===e);if(r)return{endpoint:r,params:{}};for(let t of n)try{let n=(0,R.match)(t.path,{decode:decodeURIComponent})(e);if(n)return{endpoint:t,params:n.params}}catch{continue}return null}async function x(e,{params:t}){let{slug:n}=await t,r="/"+n.join("/"),a=e.method,o=await E(r,a);if(!o)return v.NextResponse.json({error:"Endpoint not found",path:r,method:a},{status:404});let{endpoint:i,params:s}=o,l=Object.keys(s).length>0?{...i.responseBody,_pathParams:s}:i.responseBody;return v.NextResponse.json(l,{status:i.statusCode})}async function $(e,t){return x(e,t)}async function C(e,t){return x(e,t)}async function T(e,t){return x(e,t)}async function A(e,t){return x(e,t)}async function k(e,t){return x(e,t)}e.s(["DELETE",()=>k,"GET",()=>$,"PATCH",()=>A,"POST",()=>C,"PUT",()=>T],45730);var P=e.i(45730);let b=new t.AppRouteRouteModule({definition:{kind:n.RouteKind.APP_ROUTE,page:"/api/mock/[...slug]/route",pathname:"/api/mock/[...slug]",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/mock/[...slug]/route.ts",nextConfigOutput:"",userland:P}),{workAsyncStorage:N,workUnitAsyncStorage:O,serverHooks:_}=b;function S(){return(0,r.patchFetch)({workAsyncStorage:N,workUnitAsyncStorage:O})}async function U(e,t,r){b.isDev&&(0,a.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let v="/api/mock/[...slug]/route";v=v.replace(/\/index$/,"")||"/";let R=await b.prepare(e,t,{srcPage:v,multiZoneDraftMode:!1});if(!R)return t.statusCode=400,t.end("Bad Request"),null==r.waitUntil||r.waitUntil.call(r,Promise.resolve()),null;let{buildId:w,params:E,nextConfig:x,parsedUrl:$,isDraftMode:C,prerenderManifest:T,routerServerContext:A,isOnDemandRevalidate:k,revalidateOnlyGenerated:P,resolvedPathname:N,clientReferenceManifest:O,serverActionsManifest:_}=R,S=(0,s.normalizeAppPath)(v),U=!!(T.dynamicRoutes[S]||T.routes[N]),I=async()=>((null==A?void 0:A.render404)?await A.render404(e,t,$,!1):t.end("This page could not be found"),null);if(U&&!C){let e=!!T.routes[N],t=T.dynamicRoutes[S];if(t&&!1===t.fallback&&!e){if(x.experimental.adapterPath)return await I();throw new m.NoFallbackError}}let j=null;!U||b.isDev||C||(j="/index"===(j=N)?"/":j);let D=!0===b.isDev||!U,H=U&&!D;_&&O&&(0,i.setManifestsSingleton)({page:v,clientReferenceManifest:O,serverActionsManifest:_});let M=e.method||"GET",q=(0,o.getTracer)(),F=q.getActiveScopeSpan(),K={params:E,prerenderManifest:T,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:D,incrementalCache:(0,a.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:x.cacheLife,waitUntil:r.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,n,r,a)=>b.onRequestError(e,t,r,a,A)},sharedContext:{buildId:w}},B=new l.NodeNextRequest(e),L=new l.NodeNextResponse(t),G=u.NextRequestAdapter.fromNodeNextRequest(B,(0,u.signalFromNodeResponse)(t));try{let i=async e=>b.handle(G,K).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let n=q.getRootSpanAttributes();if(!n)return;if(n.get("next.span_type")!==p.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 r=n.get("next.route");if(r){let t=`${M} ${r}`;e.setAttributes({"next.route":r,"http.route":r,"next.span_name":t}),e.updateName(t)}else e.updateName(`${M} ${v}`)}),s=!!(0,a.getRequestMeta)(e,"minimalMode"),l=async a=>{var o,l;let u=async({previousCacheEntry:n})=>{try{if(!s&&k&&P&&!n)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let o=await i(a);e.fetchMetrics=K.renderOpts.fetchMetrics;let l=K.renderOpts.pendingWaitUntil;l&&r.waitUntil&&(r.waitUntil(l),l=void 0);let u=K.renderOpts.collectedTags;if(!U)return await (0,d.sendResponse)(B,L,o,K.renderOpts.pendingWaitUntil),null;{let e=await o.blob(),t=(0,f.toNodeOutgoingHttpHeaders)(o.headers);u&&(t[y.NEXT_CACHE_TAGS_HEADER]=u),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let n=void 0!==K.renderOpts.collectedRevalidate&&!(K.renderOpts.collectedRevalidate>=y.INFINITE_CACHE)&&K.renderOpts.collectedRevalidate,r=void 0===K.renderOpts.collectedExpire||K.renderOpts.collectedExpire>=y.INFINITE_CACHE?void 0:K.renderOpts.collectedExpire;return{value:{kind:g.CachedRouteKind.APP_ROUTE,status:o.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:n,expire:r}}}}catch(t){throw(null==n?void 0:n.isStale)&&await b.onRequestError(e,t,{routerKind:"App Router",routePath:v,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:H,isOnDemandRevalidate:k})},!1,A),t}},p=await b.handleResponse({req:e,nextConfig:x,cacheKey:j,routeKind:n.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:T,isRoutePPREnabled:!1,isOnDemandRevalidate:k,revalidateOnlyGenerated:P,responseGenerator:u,waitUntil:r.waitUntil,isMinimalMode:s});if(!U)return null;if((null==p||null==(o=p.value)?void 0:o.kind)!==g.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==p||null==(l=p.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});s||t.setHeader("x-nextjs-cache",k?"REVALIDATED":p.isMiss?"MISS":p.isStale?"STALE":"HIT"),C&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,f.fromNodeOutgoingHttpHeaders)(p.value.headers);return s&&U||m.delete(y.NEXT_CACHE_TAGS_HEADER),!p.cacheControl||t.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,h.getCacheControlHeader)(p.cacheControl)),await (0,d.sendResponse)(B,L,new Response(p.value.body,{headers:m,status:p.value.status||200})),null};F?await l(F):await q.withPropagatedContext(e.headers,()=>q.trace(p.BaseServerSpan.handleRequest,{spanName:`${M} ${v}`,kind:o.SpanKind.SERVER,attributes:{"http.method":M,"http.target":e.url}},l))}catch(t){if(t instanceof m.NoFallbackError||await b.onRequestError(e,t,{routerKind:"App Router",routePath:S,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:H,isOnDemandRevalidate:k})},!1,A),U)throw t;return await (0,d.sendResponse)(B,L,new Response(null,{status:500})),null}}e.s(["handler",()=>U,"patchFetch",()=>S,"routeModule",()=>b,"serverHooks",()=>_,"workAsyncStorage",()=>N,"workUnitAsyncStorage",()=>O],69039)}];
2
+
3
+ //# sourceMappingURL=node_modules__pnpm_a61fb769._.js.map