diff --git a/config/krakend/demo/404.html b/config/krakend/demo/404.html new file mode 100644 index 0000000..0dd29a0 --- /dev/null +++ b/config/krakend/demo/404.html @@ -0,0 +1 @@ +404: This page could not be found

404

This page could not be found.

\ No newline at end of file diff --git a/config/krakend/demo/404/index.html b/config/krakend/demo/404/index.html new file mode 100644 index 0000000..0dd29a0 --- /dev/null +++ b/config/krakend/demo/404/index.html @@ -0,0 +1 @@ +404: This page could not be found

404

This page could not be found.

\ No newline at end of file diff --git a/config/krakend/demo/_next/data/7_FIQwDYjERIeyX_5A66_/index.json b/config/krakend/demo/_next/data/7_FIQwDYjERIeyX_5A66_/index.json new file mode 100644 index 0000000..7eee862 --- /dev/null +++ b/config/krakend/demo/_next/data/7_FIQwDYjERIeyX_5A66_/index.json @@ -0,0 +1 @@ +{"pageProps":{"useCases":{"aggregation":[{"@comment":"Feature: Aggregation and basic transformation","endpoint":"/git/{user}","backend":[{"host":["https://api.github.com"],"url_pattern":"/users/{user}","allow":["avatar_url","name","company","blog","location","mail","hireable","followers","public_repos","public_gists"],"mapping":{"blog":"website"},"group":"user"},{"host":["https://api.github.com"],"url_pattern":"/users/{user}/repos","mapping":{"collection":"repos"},"is_collection":true}],"extra_config":{"documentation/openapi":{"summary":"Merges two calls from github and serves under a single endpoint","description":"This endpoint fetches in parallel the user information and the repository information from Githuib and returns it together. Non interesting fields are removed.","tags":["Aggregation"]}},"custom_fields":{"tag":"Feature","name":"Aggregation and basic transformation","slug":"git-user","category":"aggregation"}},{"@comment":"EE only feature: Advanced transformation with query language","endpoint":"/cryptos/{currency}","output_encoding":"json-collection","backend":[{"host":["https://api.coingecko.com"],"url_pattern":"/api/v3/coins/markets?vs_currency={currency}&order=market_cap_desc&per_page=100&page=1&sparkline=false","encoding":"safejson"}],"extra_config":{"modifier/jmespath":{"@comment":"Get first 5 crypto by market capitalization, then reverse sort them by name, finally filter and rename some fields","expr":"reverse(sort_by(collection[:5], &name))[*].{name: name, token: symbol,price: current_price, price_change: price_change_percentage_24h, market_cap: market_cap}"},"documentation/openapi":{"summary":"Get TOP 5 crypto capitalization & price data for a given currency","description":"This endpoint fetches some crypto capitalization data from Coingecko for a given currency.","tags":["Aggregation"]}},"custom_fields":{"tag":"EE only feature","name":"Advanced transformation with query language","slug":"cryptos-currency","category":"aggregation"}}],"others":[{"@comment":"EE only feature: Regular expression manipulation","endpoint":"/user/creditcard","backend":[{"host":["http://fake_api"],"url_pattern":"/user/1.json","allow":["credit_card"],"extra_config":{"plugin/req-resp-modifier":{"name":["content-replacer"],"content-replacer":{"credit_card.number":{"@comment":"Ridiculous card masking. Show last 4 digits and remove the rest. Credit card number is nested.","find":"^.*(\\d{4})","replace":"XXXX-${1}","regexp":true}}}}}],"custom_fields":{"tag":"EE only feature","name":"Regular expression manipulation","slug":"user-creditcard","category":"others"}},{"@comment":"Feature: Security policy engine for requests, responses and claim checking","endpoint":"/track-user","@test_with":"curl -iG -H'Cookie: GDPR=yes' 'http://localhost:8080/track-user'","input_headers":["Cookie"],"backend":[{"host":["http://localhost:8080"],"url_pattern":"/__debug/cookie"}],"extra_config":{"security/policies":{"req":{"policies":["getCookie('GDPR') == 'yes'"],"error":{"body":"User did not accept the cookie and tracking is not allowed","status":403}}}},"custom_fields":{"tag":"Feature","name":"Security policy engine for requests, responses and claim checking","slug":"track-user","category":"others"}},{"@comment":"Feature: Aggregation + backend rate limiting + endpoint rate limiting","endpoint":"/shop","backend":[{"host":["http://fake_api"],"url_pattern":"/shop/campaigns.json","allow":["campaigns"]},{"host":["http://fake_api"],"url_pattern":"/shop/products.json","allow":["products"],"extra_config":{"qos/ratelimit/proxy":{"max_rate":1,"capacity":1}}}],"extra_config":{"qos/ratelimit/router":{"max_rate":2}},"custom_fields":{"tag":"Feature","name":"Aggregation + backend rate limiting + endpoint rate limiting","slug":"shop","category":"others"}},{"@comment":"Feature: Backend cache","endpoint":"/market/cached","backend":[{"host":["https://api.coingecko.com"],"url_pattern":"/api/v3/coins/markets?vs_currency=eur&ids=bitcoin%2Cethereum&order=market_cap_desc&per_page=100&page=1&sparkline=false","encoding":"safejson","mapping":{"collection":"coins"},"extra_config":{"qos/http-cache":{"shared":true}}}],"custom_fields":{"tag":"Feature","name":"Backend cache","slug":"market-cached","category":"others"}},{"@comment":"Feature: GraphQL to REST","endpoint":"/starwars_films/{movie_id}","backend":[{"host":["https://swapi-graphql.netlify.app/"],"url_pattern":"/.netlify/functions/index","target":"data.film","extra_config":{"backend/graphql":{"type":"query","query":"query Query ($movie_id: ID!) {\nfilm (filmID: $movie_id) {\nid\nepisodeID\ntitle\ndirector\nreleaseDate\nspeciesConnection {\nspecies {\nname\nclassification\nhomeworld {\nname\n}\n}\n}\n}\n}","variables":{"movie_id":"{movie_id}"}}}}],"custom_fields":{"tag":"Feature","name":"GraphQL to REST","slug":"starwars-films-movie-id","category":"others"}},{"@comment":"Feature: Sequential calls, using values from 1st call response into 2nd call request","endpoint":"/sequential","backend":[{"host":["http://fake_api"],"url_pattern":"/hotels/1.json","allow":["destination_id"]},{"host":["http://fake_api"],"url_pattern":"/destinations/{resp0_destination_id}.json"}],"extra_config":{"proxy":{"sequential":true}},"custom_fields":{"tag":"Feature","name":"Sequential calls, using values from 1st call response into 2nd call request","slug":"sequential","category":"others"}},{"@comment":"Feature: A failing request from a non-existent backend","endpoint":"/fail","backend":[{"host":["http://fake_api"],"url_pattern":"/user/1.json","group":"user"},{"host":["http://fake_url_that_should_not_resolve.tld"],"url_pattern":"/","group":"none"}],"custom_fields":{"tag":"Feature","name":"A failing request from a non-existent backend","slug":"fail","category":"others"}},{"@comment":"Feature: Expose a GET REST endpoint from POST to SOAP service","endpoint":"/capital-of/{country}","backend":[{"host":["http://webservices.oorsprong.org"],"url_pattern":"/websamples.countryinfo/CountryInfoService.wso","encoding":"xml","method":"POST","target":"Envelope.Body.CapitalCityResponse","mapping":{"CapitalCityResult":"capital"},"deny":["-m"],"extra_config":{"backend/soap":{"@comment":"The XML template with variables is in the following path:","path":"./extended/templates/soap_request_capital_city.tmpl.xml"}}}],"custom_fields":{"tag":"Feature","name":"Expose a GET REST endpoint from POST to SOAP service","slug":"capital-of-country","category":"others"}},{"@comment":"EE only feature: Dynamic routing based on headers (token claim and cookie also available)","endpoint":"/dynamic/header","backend":[{"@comment":"We will route to the backend using the content of the 'X-Route' header","@test_with":"curl -iG -H 'X-Route: hello' 'http://localhost:8080/dynamic/header'","url_pattern":"/__debug/{input_headers.x-route}"}],"custom_fields":{"tag":"EE only feature","name":"Dynamic routing based on headers (token claim and cookie also available)","slug":"dynamic-header","category":"others"}},{"@comment":"EE only feature: Dynamic routing based on query strings","endpoint":"/dynamic/qs","backend":[{"@comment":"We will route to the backend using the content of the 'X-Route' header","@test_with":"curl -iG 'http://localhost:8080/dynamic/qs?route=hello'","url_pattern":"/__debug/{input_query_strings.route}"}],"custom_fields":{"tag":"EE only feature","name":"Dynamic routing based on query strings","slug":"dynamic-qs","category":"others"}},{"@comment":"Feature: A public endpoint that requires no authentication","endpoint":"/public","backend":[{"host":["http://fake_api"],"url_pattern":"/hotels/1.json"}],"custom_fields":{"tag":"Feature","name":"A public endpoint that requires no authentication","slug":"public","category":"others"}},{"@comment":"Feature: Authorization based on JWT (using KrakenD JOSE signer)","endpoint":"/private/custom","backend":[{"host":["http://fake_api"],"url_pattern":"/user/1.json"}],"extra_config":{"auth/validator":{"alg":"HS256","audience":["http://api.example.com"],"roles_key":"roles","issuer":"https://krakend.io","roles":["role_a","role_c"],"jwk_local_path":"/opt/krakend/jwk-symmetric.json","disable_jwk_security":true}},"custom_fields":{"tag":"Feature","name":"Authorization based on JWT (using KrakenD JOSE signer)","slug":"private-custom","category":"others"}},{"@comment":"Feature: JWT signing, as described at https://www.krakend.io/docs/authorization/jwt-signing/","endpoint":"/token","backend":[{"host":["http://fake_api"],"url_pattern":"/token.json"}],"extra_config":{"auth/signer":{"alg":"HS256","kid":"sim2","keys_to_sign":["access_token","refresh_token"],"jwk_local_path":"/opt/krakend/jwk-symmetric.json","disable_jwk_security":true}},"custom_fields":{"tag":"Feature","name":"JWT signing, as described at https","slug":"token","category":"others"}},{"@comment":"Feature: Only POST method allowed","endpoint":"/post","method":"POST","backend":[{"url_pattern":"/__debug/post"}],"custom_fields":{"tag":"Feature","name":"Only POST method allowed","slug":"post","category":"others"}},{"@comment":"Feature: Mocked response","endpoint":"/mocked-response","method":"GET","output_encoding":"json","backend":[{"host":["http://unexistent_backend"],"url_pattern":"/"}],"extra_config":{"proxy":{"static":{"data":{"an_integer":123,"an_array":["arr1","arr2"],"an_object":{"obj":"obj1"}},"strategy":"always"}}},"custom_fields":{"tag":"Feature","name":"Mocked response","slug":"mocked-response","category":"others"}},{"@comment":"EE only feature: GRPC","endpoint":"/travel","input_query_strings":["lat","lon"],"backend":[{"host":["grpc_flights:4242"],"group":"flights","url_pattern":"/flight_finder.Flights/FindFlight","extra_config":{"backend/grpc":{"input_mapping":{"lat":"where.latitude","lon":"where.longitude"}}}},{"host":["grpc_trains:4243"],"group":"trains","url_pattern":"/train_finder.Trains/FindTrains","extra_config":{"backend/grpc":{"input_mapping":{"lat":"origin.position.latitude","lon":"origin.position.longitude"},"response_naming_convention":"camelCase","output_enum_as_string":true,"output_timestamp_as_string":true,"output_duration_as_string":true,"client_tls":{"allow_insecure_connections":true}}}},{"group":"hotels","url_pattern":"/hotels/1.json"},{"host":["grpc_trains:4243"],"group":"trains_classes","url_pattern":"/train_finder.Trains/GetTrainClasses","extra_config":{"backend/grpc":{"response_naming_convention":"camelCase","output_remove_unset_values":true,"client_tls":{"allow_insecure_connections":true}}}}],"custom_fields":{"tag":"EE only feature","name":"GRPC","slug":"travel","category":"others"}},{"@comment":"EE only feature: GRPC Payload in Body","endpoint":"/travel_book_flight/{id_flight}/{main_passenger}","method":"POST","backend":[{"host":["grpc_flights:4242"],"group":"flights","url_pattern":"/flight_finder.Flights/BookFlight","extra_config":{"backend/grpc":{"input_mapping":{"Id_flight":"flight_id","Main_passenger":"main_passenger.full_name"},"use_request_body":true}}}],"custom_fields":{"tag":"EE only feature","name":"GRPC Payload in Body","slug":"travel-book-flight-id-flight-main-passenger","category":"others"}},{"@comment":"EE only feature: WebSockets (chat example)","endpoint":"/chat/ws/{room}","input_query_strings":["*"],"input_headers":["*"],"backend":[{"url_pattern":"/ws/{room}","disable_host_sanitize":true,"host":["ws://chat:8888"]}],"extra_config":{"websocket":{"input_headers":["Cookie","Authorization"],"connect_event":true,"disconnect_event":true,"read_buffer_size":4096,"write_buffer_size":4096,"message_buffer_size":4096,"max_message_size":3200000,"write_wait":"10s","pong_wait":"60s","ping_period":"54s","max_retries":0,"backoff_strategy":"exponential"}},"custom_fields":{"tag":"EE only feature","name":"WebSockets (chat example)","slug":"chat-ws-room","category":"others"}},{"@comment":"EE only feature: WebSockets (chat example web interface)","endpoint":"/chat","output_encoding":"no-op","backend":[{"url_pattern":"/","host":["http://chat:8888"],"encoding":"no-op"}],"custom_fields":{"tag":"EE only feature","name":"WebSockets (chat example web interface)","slug":"chat","category":"others"}},{"@comment":"EE only feature: Web Server - Static content","endpoint":"/demo/*","output_encoding":"no-op","backend":[{"url_pattern":"/","extra_config":{"backend/static-filesystem":{"directory_listing":false,"path":"./demo/"}},"host":["http://localhost:8080"],"encoding":"no-op"}],"custom_fields":{"tag":"EE only feature","name":"Web Server - Static content","slug":"demo","category":"others"}}],"concurrent_calls":[{"@comment":"Feature: Concurrent calls - Not enabled","endpoint":"/market/simple","backend":[{"host":["https://api.coingecko.com"],"url_pattern":"/api/v3/coins/markets?vs_currency=eur&ids=bitcoin%2Cethereum&order=market_cap_desc&per_page=100&page=1&sparkline=false","encoding":"safejson","mapping":{"collection":"coins"}}],"extra_config":{"documentation/openapi":{"summary":"Get crypto market information with a single call","description":"This endpoint fetches crypto market information from Coingecko using a single non-concurrent call.","tags":["Concurrent calls"]}},"custom_fields":{"tag":"Feature","name":"Concurrent calls - Not enabled","slug":"market-simple","category":"concurrent_calls"}},{"@comment":"Feature: Concurrent calls - Enabled","endpoint":"/market/concurrent","concurrent_calls":3,"backend":[{"host":["https://api.coingecko.com"],"url_pattern":"/api/v3/coins/markets?vs_currency=eur&ids=bitcoin%2Cethereum&order=market_cap_desc&per_page=100&page=1&sparkline=false","encoding":"safejson","mapping":{"collection":"coins"}}],"extra_config":{"documentation/openapi":{"summary":"Get crypto market information with 3 concurrent calls","description":"This endpoint fetches crypto market information from Coingecko using 3 concurrent calls.","tags":["Concurrent calls"]}},"custom_fields":{"tag":"Feature","name":"Concurrent calls - Enabled","slug":"market-concurrent","category":"concurrent_calls"}}],"wildcard":[{"@comment":"EE only feature: Wildcard to our fake API, open","endpoint":"/fake-api/*","backend":[{"host":["http://fake_api"],"url_pattern":"/"}],"extra_config":{"documentation/openapi":{"summary":"Calls to internal service with wildcard","description":"This endpoint will send all requests to a designed backend including everything after the /fake-api path","tags":["Wildcard"]}},"custom_fields":{"tag":"EE only feature","name":"Wildcard to our fake API, open","slug":"fake-api","category":"wildcard"}},{"@comment":"EE only feature: Wildcard to our fake API, protected with Basic Auth","endpoint":"/fake-api-auth/*","@test_with":"curl -iG 'http://admin:admin@localhost:8080/fake-api-auth/articles.json'","output_encoding":"no-op","backend":[{"host":["http://fake_api"],"url_pattern":"/"}],"extra_config":{"@comment":"The simple inclusion of the Auth Basic component enables it for this endpoint","auth/basic":{},"documentation/openapi":{"summary":"Calls to internal service with wildcard, adding auth","description":"This endpoint will send all requests to a designed backend including everything after the /fake-api-auth path, adding Basic Authentication","tags":["Wildcard"]}},"custom_fields":{"tag":"EE only feature","name":"Wildcard to our fake API, protected with Basic Auth","slug":"fake-api-auth","category":"wildcard"}},{"@comment":"EE only feature: Wildcard with geofencing - Allow visits only from Spain","endpoint":"/fake-api-geofence/*","input_headers":["X-Geoip"],"backend":[{"host":["http://fake_api"],"url_pattern":"/"}],"extra_config":{"validation/cel":[{"check_expr":"req_headers['X-Geoip'][0].matches('\"IsoCode\":\"ES\"')"}],"documentation/openapi":{"summary":"Calls to internal service with wildcard, using geofencing","description":"This endpoint will send all requests to a designed backend including everything after the /fake-api-geofence path, adding geofencing (allowing calls only from Spain)","tags":["Wildcard"]}},"custom_fields":{"tag":"EE only feature","name":"Wildcard with geofencing - Allow visits only from Spain","slug":"fake-api-geofence","category":"wildcard"}}],"authentication":[{"@comment":"Feature: Authorization based on JWT (using Auth0)","endpoint":"/private/auth0","backend":[{"host":["http://fake_api"],"url_pattern":"/user/1.json"}],"extra_config":{"auth/validator":{"alg":"RS256","audience":["http://api.example.com"],"roles_key":"http://api.example.com/custom/roles","roles":["user","admin"],"jwk_url":"https://albert-test.auth0.com/.well-known/jwks.json"},"documentation/openapi":{"summary":"Some information behind JWT authentication protection (Auth0)","description":"This endpoint uses JWT authentication with Auth0","tags":["Authentication"]}},"custom_fields":{"tag":"Feature","name":"Authorization based on JWT (using Auth0)","slug":"private-auth0","category":"authentication"}},{"@comment":"EE only feature: Authorization based on API Keys","endpoint":"/api-key","backend":[{"url_pattern":"/__debug/admin","host":["http://localhost:8080"]}],"extra_config":{"auth/api-keys":{"roles":["admin"]},"documentation/openapi":{"summary":"Some information behind API-Keys authentication protection","description":"This endpoint uses API-Key authentication","tags":["Authentication"]}},"custom_fields":{"tag":"EE only feature","name":"Authorization based on API Keys","slug":"api-key","category":"authentication"}}]}},"__N_SSG":true} \ No newline at end of file diff --git a/config/krakend/demo/_next/static/7_FIQwDYjERIeyX_5A66_/_buildManifest.js b/config/krakend/demo/_next/static/7_FIQwDYjERIeyX_5A66_/_buildManifest.js new file mode 100644 index 0000000..1501a0c --- /dev/null +++ b/config/krakend/demo/_next/static/7_FIQwDYjERIeyX_5A66_/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(s,e,a,c){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[s,c,"static/chunks/pages/index-2885b70025dd81dd.js"],"/_error":["static/chunks/pages/_error-a1dfd1adb240a82a.js"],"/integrations/enterprise/api-key-authentication":[s,c,"static/chunks/pages/integrations/enterprise/api-key-authentication-2c8deb3f85fa48e1.js"],"/integrations/enterprise/documentation":[s,c,"static/chunks/pages/integrations/enterprise/documentation-f6c7ce50ac3e4ee0.js"],"/integrations/enterprise/identity-providers":[s,c,"static/chunks/pages/integrations/enterprise/identity-providers-ea81f309bf8c96c8.js"],"/integrations/enterprise/logging":[s,c,"static/chunks/pages/integrations/enterprise/logging-ea9f6208edc54cb5.js"],"/integrations/enterprise/monitoring-and-metrics":[s,c,"static/chunks/pages/integrations/enterprise/monitoring-and-metrics-7f2a20279e610ab3.js"],"/integrations/enterprise/postman":[s,c,"static/chunks/pages/integrations/enterprise/postman-fd861cf1df9454ea.js"],"/integrations/enterprise/tracing-dashboard":[s,c,"static/chunks/pages/integrations/enterprise/tracing-dashboard-0eb77d87b3359ecf.js"],"/integrations/open-source/api-key-authentication":[s,c,"static/chunks/pages/integrations/open-source/api-key-authentication-a5715994607d7054.js"],"/integrations/open-source/documentation":[s,c,"static/chunks/pages/integrations/open-source/documentation-bfb68d5746e526d3.js"],"/integrations/open-source/identity-providers":[s,c,"static/chunks/pages/integrations/open-source/identity-providers-f571b433a2a1edaf.js"],"/integrations/open-source/logging":[s,c,"static/chunks/pages/integrations/open-source/logging-f719f3c29ec62680.js"],"/integrations/open-source/monitoring-and-metrics":[s,c,"static/chunks/pages/integrations/open-source/monitoring-and-metrics-4a8dccd19a1eb3f3.js"],"/integrations/open-source/postman":[s,c,"static/chunks/pages/integrations/open-source/postman-dfe8da36a1c26f40.js"],"/integrations/open-source/tracing-dashboard":[s,c,"static/chunks/pages/integrations/open-source/tracing-dashboard-6fc56a40d45536d3.js"],"/use-cases/api-key":[s,e,a,"static/chunks/pages/use-cases/api-key-f25edf2f4cd1d783.js"],"/use-cases/capital-of-country":[s,e,a,"static/chunks/pages/use-cases/capital-of-country-8c1bcece7bb55ba2.js"],"/use-cases/chat":[s,e,a,"static/chunks/pages/use-cases/chat-05b5cee612ebd032.js"],"/use-cases/chat-ws-room":[s,e,a,"static/chunks/pages/use-cases/chat-ws-room-75ebb3bdceec2d38.js"],"/use-cases/cryptos-currency":[s,e,a,"static/chunks/pages/use-cases/cryptos-currency-404c363e4ef9a19d.js"],"/use-cases/demo":[s,e,a,"static/chunks/pages/use-cases/demo-61b658abc27d10bd.js"],"/use-cases/dynamic-header":[s,e,a,"static/chunks/pages/use-cases/dynamic-header-aea414d8076149f7.js"],"/use-cases/dynamic-qs":[s,e,a,"static/chunks/pages/use-cases/dynamic-qs-842a3e58fd303aa1.js"],"/use-cases/fail":[s,e,a,"static/chunks/pages/use-cases/fail-80e235c63f1e5e9b.js"],"/use-cases/fake-api":[s,e,a,"static/chunks/pages/use-cases/fake-api-bfcbb79324c614ed.js"],"/use-cases/fake-api-auth":[s,e,a,"static/chunks/pages/use-cases/fake-api-auth-2b7aee56f7282747.js"],"/use-cases/fake-api-geofence":[s,e,a,"static/chunks/pages/use-cases/fake-api-geofence-b9c08ebbdd6e92c4.js"],"/use-cases/git-user":[s,e,a,"static/chunks/pages/use-cases/git-user-73654f830bc58fb8.js"],"/use-cases/market-cached":[s,e,a,"static/chunks/pages/use-cases/market-cached-322739ffa790586c.js"],"/use-cases/market-concurrent":[s,e,a,"static/chunks/pages/use-cases/market-concurrent-1ec7a0ce60b37da6.js"],"/use-cases/market-simple":[s,e,a,"static/chunks/pages/use-cases/market-simple-cb29d8586c73c778.js"],"/use-cases/mocked-response":[s,e,a,"static/chunks/pages/use-cases/mocked-response-623f61ea49eee00d.js"],"/use-cases/post":[s,e,a,"static/chunks/pages/use-cases/post-0d67f274f4675c38.js"],"/use-cases/private-auth0":[s,e,a,"static/chunks/pages/use-cases/private-auth0-fc75d5b28df928d6.js"],"/use-cases/private-custom":[s,e,a,"static/chunks/pages/use-cases/private-custom-d77b23410a6b6dd0.js"],"/use-cases/public":[s,e,a,"static/chunks/pages/use-cases/public-c0f8a61a63cb0917.js"],"/use-cases/sequential":[s,e,a,"static/chunks/pages/use-cases/sequential-752291e2c04b1757.js"],"/use-cases/shop":[s,e,a,"static/chunks/pages/use-cases/shop-7673b2edf39cf690.js"],"/use-cases/starwars-films-movie-id":[s,e,a,"static/chunks/pages/use-cases/starwars-films-movie-id-7bfb867a8b7b9458.js"],"/use-cases/token":[s,e,a,"static/chunks/pages/use-cases/token-23b45a8e2518d738.js"],"/use-cases/track-user":[s,e,a,"static/chunks/pages/use-cases/track-user-7ebf5a300d8cf0e7.js"],"/use-cases/travel":[s,e,a,"static/chunks/pages/use-cases/travel-9887fb0a0378f7ab.js"],"/use-cases/travel-book-flight-id-flight-main-passenger":[s,e,a,"static/chunks/pages/use-cases/travel-book-flight-id-flight-main-passenger-6cf79bd6daa6996e.js"],"/use-cases/user-creditcard":[s,e,a,"static/chunks/pages/use-cases/user-creditcard-c53f8df356e61872.js"],sortedPages:["/","/_app","/_error","/integrations/enterprise/api-key-authentication","/integrations/enterprise/documentation","/integrations/enterprise/identity-providers","/integrations/enterprise/logging","/integrations/enterprise/monitoring-and-metrics","/integrations/enterprise/postman","/integrations/enterprise/tracing-dashboard","/integrations/open-source/api-key-authentication","/integrations/open-source/documentation","/integrations/open-source/identity-providers","/integrations/open-source/logging","/integrations/open-source/monitoring-and-metrics","/integrations/open-source/postman","/integrations/open-source/tracing-dashboard","/use-cases/api-key","/use-cases/capital-of-country","/use-cases/chat","/use-cases/chat-ws-room","/use-cases/cryptos-currency","/use-cases/demo","/use-cases/dynamic-header","/use-cases/dynamic-qs","/use-cases/fail","/use-cases/fake-api","/use-cases/fake-api-auth","/use-cases/fake-api-geofence","/use-cases/git-user","/use-cases/market-cached","/use-cases/market-concurrent","/use-cases/market-simple","/use-cases/mocked-response","/use-cases/post","/use-cases/private-auth0","/use-cases/private-custom","/use-cases/public","/use-cases/sequential","/use-cases/shop","/use-cases/starwars-films-movie-id","/use-cases/token","/use-cases/track-user","/use-cases/travel","/use-cases/travel-book-flight-id-flight-main-passenger","/use-cases/user-creditcard"]}}("static/chunks/9814-ed9b5e85fe153376.js","static/chunks/4729-e0c105e6a239c6a0.js","static/chunks/6103-f75fdab7df28a1cb.js","static/chunks/5675-4f371e0ae8e3dba4.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/config/krakend/demo/_next/static/7_FIQwDYjERIeyX_5A66_/_ssgManifest.js b/config/krakend/demo/_next/static/7_FIQwDYjERIeyX_5A66_/_ssgManifest.js new file mode 100644 index 0000000..740a0d0 --- /dev/null +++ b/config/krakend/demo/_next/static/7_FIQwDYjERIeyX_5A66_/_ssgManifest.js @@ -0,0 +1 @@ +self.__SSG_MANIFEST=new Set(["\u002F"]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() \ No newline at end of file diff --git a/config/krakend/demo/_next/static/chunks/4729-e0c105e6a239c6a0.js b/config/krakend/demo/_next/static/chunks/4729-e0c105e6a239c6a0.js new file mode 100644 index 0000000..8baf06c --- /dev/null +++ b/config/krakend/demo/_next/static/chunks/4729-e0c105e6a239c6a0.js @@ -0,0 +1,8 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4729],{4277:function(){Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json},5660:function(e,t,n){/** + * Prism: Lightweight, robust, elegant syntax highlighting + * + * @license MIT + * @author Lea Verou + * @namespace + * @public + */var a,r,s=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,a={},r={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof s?new s(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/=g.reach));x+=F.value.length,F=F.next){var w,A=F.value;if(n.length>t.length)return;if(!(A instanceof s)){var $=1;if(b){if(!(w=i(k,x,t,m))||w.index>=t.length)break;var E=w.index,S=w.index+w[0].length,_=x;for(_+=F.value.length;E>=_;)_+=(F=F.next).value.length;if(_-=F.value.length,x=_,F.value instanceof s)continue;for(var j=F;j!==n.tail&&(_g.reach&&(g.reach=O);var z=F.prev;if(P&&(z=o(n,z,P),x+=P.length),function(e,t,n){for(var a=t.next,r=0;r1){var T={cause:c+","+p,reach:O};e(t,n,a,F.prev,x,T),g&&T.reach>g.reach&&(g.reach=T.reach)}}}}}}(e,u,t,u.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(u)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var a,s=0;a=n[s++];)a(t)}},Token:s};function s(e,t,n,a){this.type=e,this.content=t,this.alias=n,this.length=0|(a||"").length}function i(e,t,n,a){e.lastIndex=t;var r=e.exec(n);if(r&&a&&r[1]){var s=r[1].length;r.index+=s,r[0]=r[0].slice(s)}return r}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function o(e,t,n){var a=t.next,r={value:n,prev:t,next:a};return t.next=r,a.prev=r,e.length++,r}if(e.Prism=r,s.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var a="";return t.forEach(function(t){a+=e(t,n)}),a}var s={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},i=t.alias;i&&(Array.isArray(i)?Array.prototype.push.apply(s.classes,i):s.classes.push(i)),r.hooks.run("wrap",s);var l="";for(var o in s.attributes)l+=" "+o+'="'+(s.attributes[o]||"").replace(/"/g,""")+'"';return"<"+s.tag+' class="'+s.classes.join(" ")+'"'+l+">"+s.content+""},!e.document)return e.addEventListener&&(r.disableWorkerMessageHandler||e.addEventListener("message",function(t){var n=JSON.parse(t.data),a=n.language,s=n.code,i=n.immediateClose;e.postMessage(r.highlight(s,r.languages[a],a)),i&&e.close()},!1)),r;var u=r.util.currentScript();function g(){r.manual||r.highlightAll()}if(u&&(r.filename=u.src,u.hasAttribute("data-manual")&&(r.manual=!0)),!r.manual){var c=document.readyState;"loading"===c||"interactive"===c&&u&&u.defer?document.addEventListener("DOMContentLoaded",g):window.requestAnimationFrame?window.requestAnimationFrame(g):window.setTimeout(g,16)}return r}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=s),void 0!==n.g&&(n.g.Prism=s),s.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},s.languages.markup.tag.inside["attr-value"].inside.entity=s.languages.markup.entity,s.languages.markup.doctype.inside["internal-subset"].inside=s.languages.markup,s.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(s.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:s.languages[t]},n.cdata=/^$/i;var a={"included-cdata":{pattern://i,inside:n}};a["language-"+t]={pattern:/[\s\S]+/,inside:s.languages[t]};var r={};r[e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:a},s.languages.insertBefore("markup","cdata",r)}}),Object.defineProperty(s.languages.markup.tag,"addAttribute",{value:function(e,t){s.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:s.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),s.languages.html=s.languages.markup,s.languages.mathml=s.languages.markup,s.languages.svg=s.languages.markup,s.languages.xml=s.languages.extend("markup",{}),s.languages.ssml=s.languages.xml,s.languages.atom=s.languages.xml,s.languages.rss=s.languages.xml,a=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,s.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+a.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+a.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+a.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+a.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:a,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},s.languages.css.atrule.inside.rest=s.languages.css,(r=s.languages.markup)&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css")),s.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},s.languages.javascript=s.languages.extend("clike",{"class-name":[s.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|")+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),s.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,s.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:s.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:s.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:s.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:s.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:s.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),s.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:s.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),s.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),s.languages.markup&&(s.languages.markup.tag.addInlined("script","javascript"),s.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),s.languages.js=s.languages.javascript,function(){if(void 0!==s&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},t="data-src-status",n="loading",a="loaded",r="pre[data-src]:not(["+t+'="'+a+'"]):not(['+t+'="'+n+'"])';s.hooks.add("before-highlightall",function(e){e.selector+=", "+r}),s.hooks.add("before-sanity-check",function(i){var l=i.element;if(l.matches(r)){i.code="",l.setAttribute(t,n);var o,u,g,c=l.appendChild(document.createElement("CODE"));c.textContent="Loading…";var d=l.getAttribute("data-src"),p=i.language;if("none"===p){var h=(/\.(\w+)$/.exec(d)||[,"none"])[1];p=e[h]||h}s.util.setLanguage(c,p),s.util.setLanguage(l,p);var f=s.plugins.autoloader;f&&f.loadLanguages(p),o=function(e){l.setAttribute(t,a);var n=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var n=Number(t[1]),a=t[2],r=t[3];return a?r?[n,Number(r)]:[n,void 0]:[n,n]}}(l.getAttribute("data-range"));if(n){var r=e.split(/\r\n?|\n/g),i=n[0],o=null==n[1]?r.length:n[1];i<0&&(i+=r.length),i=Math.max(0,Math.min(i-1,r.length)),o<0&&(o+=r.length),o=Math.max(0,Math.min(o,r.length)),e=r.slice(i,o).join("\n"),l.hasAttribute("data-start")||l.setAttribute("data-start",String(i+1))}c.textContent=e,s.highlightElement(c)},u=function(e){l.setAttribute(t,"failed"),c.textContent=e},(g=new XMLHttpRequest).open("GET",d,!0),g.onreadystatechange=function(){4==g.readyState&&(g.status<400&&g.responseText?o(g.responseText):g.status>=400?u("✖ Error "+g.status+" while fetching file: "+g.statusText):u("✖ Error: File does not exist or is empty"))},g.send(null)}}),s.plugins.fileHighlight={highlight:function(e){for(var t,n=(e||document).querySelectorAll(r),a=0;t=n[a++];)s.highlightElement(t)}};var i=!1;s.fileHighlight=function(){i||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),i=!0),s.plugins.fileHighlight.highlight.apply(this,arguments)}}}()},4116:function(e,t,n){"use strict";var a=n(7294);let r=a.forwardRef(function(e,t){let{title:n,titleId:r,...s}=e;return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},s),n?a.createElement("title",{id:r},n):null,a.createElement("path",{fillRule:"evenodd",d:"M17 10a.75.75 0 0 1-.75.75H5.612l4.158 3.96a.75.75 0 1 1-1.04 1.08l-5.5-5.25a.75.75 0 0 1 0-1.08l5.5-5.25a.75.75 0 1 1 1.04 1.08L5.612 9.25H16.25A.75.75 0 0 1 17 10Z",clipRule:"evenodd"}))});t.Z=r}}]); \ No newline at end of file diff --git a/config/krakend/demo/_next/static/chunks/5675-4f371e0ae8e3dba4.js b/config/krakend/demo/_next/static/chunks/5675-4f371e0ae8e3dba4.js new file mode 100644 index 0000000..fb74a00 --- /dev/null +++ b/config/krakend/demo/_next/static/chunks/5675-4f371e0ae8e3dba4.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5675],{6541:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return w}});let r=i(8754),o=i(1757),n=i(5893),s=o._(i(7294)),l=r._(i(3935)),a=r._(i(7828)),u=i(7367),d=i(7903),c=i(4938);i(1997);let f=i(9953),g=r._(i(6663)),p={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/demo/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function m(e,t,i,r,o,n,s){let l=null==e?void 0:e.src;e&&e["data-loaded-src"]!==l&&(e["data-loaded-src"]=l,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&o(!0),null==i?void 0:i.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,o=!1;i.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{o=!0,t.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(e)}}))}function h(e){return s.use?{fetchPriority:e}:{fetchpriority:e}}let v=(0,s.forwardRef)((e,t)=>{let{src:i,srcSet:r,sizes:o,height:l,width:a,decoding:u,className:d,style:c,fetchPriority:f,placeholder:g,loading:p,unoptimized:v,fill:b,onLoadRef:w,onLoadingCompleteRef:y,setBlurComplete:S,setShowAltText:_,sizesInput:j,onLoad:x,onError:C,...z}=e;return(0,n.jsx)("img",{...z,...h(f),loading:p,width:a,height:l,decoding:u,"data-nimg":b?"fill":"1",className:d,style:c,sizes:o,srcSet:r,src:i,ref:(0,s.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(C&&(e.src=e.src),e.complete&&m(e,g,w,y,S,v,j))},[i,g,w,y,S,C,v,j,t]),onLoad:e=>{m(e.currentTarget,g,w,y,S,v,j)},onError:e=>{_(!0),"empty"!==g&&S(!0),C&&C(e)}})});function b(e){let{isAppRouter:t,imgAttributes:i}=e,r={as:"image",imageSrcSet:i.srcSet,imageSizes:i.sizes,crossOrigin:i.crossOrigin,referrerPolicy:i.referrerPolicy,...h(i.fetchPriority)};return t&&l.default.preload?(l.default.preload(i.src,r),null):(0,n.jsx)(a.default,{children:(0,n.jsx)("link",{rel:"preload",href:i.srcSet?void 0:i.src,...r},"__nimg-"+i.src+i.srcSet+i.sizes)})}let w=(0,s.forwardRef)((e,t)=>{let i=(0,s.useContext)(f.RouterContext),r=(0,s.useContext)(c.ImageConfigContext),o=(0,s.useMemo)(()=>{let e=p||r||d.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),i=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:i}},[r]),{onLoad:l,onLoadingComplete:a}=e,m=(0,s.useRef)(l);(0,s.useEffect)(()=>{m.current=l},[l]);let h=(0,s.useRef)(a);(0,s.useEffect)(()=>{h.current=a},[a]);let[w,y]=(0,s.useState)(!1),[S,_]=(0,s.useState)(!1),{props:j,meta:x}=(0,u.getImgProps)(e,{defaultLoader:g.default,imgConf:o,blurComplete:w,showAltText:S});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v,{...j,unoptimized:x.unoptimized,placeholder:x.placeholder,fill:x.fill,onLoadRef:m,onLoadingCompleteRef:h,setBlurComplete:y,setShowAltText:_,sizesInput:e.sizes,ref:t}),x.priority?(0,n.jsx)(b,{isAppRouter:!i,imgAttributes:j}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7367:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return l}}),i(1997);let r=i(9919),o=i(7903);function n(e){return void 0!==e.default}function s(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function l(e,t){var i;let l,a,u,{src:d,sizes:c,unoptimized:f=!1,priority:g=!1,loading:p,className:m,quality:h,width:v,height:b,fill:w=!1,style:y,overrideSrc:S,onLoad:_,onLoadingComplete:j,placeholder:x="empty",blurDataURL:C,fetchPriority:z,layout:P,objectFit:E,objectPosition:O,lazyBoundary:R,lazyRoot:I,...M}=e,{imgConf:k,showAltText:N,blurComplete:A,defaultLoader:D}=t,B=k||o.imageConfigDefault;if("allSizes"in B)l=B;else{let e=[...B.deviceSizes,...B.imageSizes].sort((e,t)=>e-t),t=B.deviceSizes.sort((e,t)=>e-t);l={...B,allSizes:e,deviceSizes:t}}if(void 0===D)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let F=M.loader||D;delete M.loader,delete M.srcSet;let G="__next_img_default"in F;if(G){if("custom"===l.loader)throw Error('Image with src "'+d+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=F;F=t=>{let{config:i,...r}=t;return e(r)}}if(P){"fill"===P&&(w=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[P];e&&(y={...y,...e});let t={responsive:"100vw",fill:"100vw"}[P];t&&!c&&(c=t)}let L="",W=s(v),T=s(b);if("object"==typeof(i=d)&&(n(i)||void 0!==i.src)){let e=n(d)?d.default:d;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(a=e.blurWidth,u=e.blurHeight,C=C||e.blurDataURL,L=e.src,!w){if(W||T){if(W&&!T){let t=W/e.width;T=Math.round(e.height*t)}else if(!W&&T){let t=T/e.height;W=Math.round(e.width*t)}}else W=e.width,T=e.height}}let U=!g&&("lazy"===p||void 0===p);(!(d="string"==typeof d?d:L)||d.startsWith("data:")||d.startsWith("blob:"))&&(f=!0,U=!1),l.unoptimized&&(f=!0),G&&d.endsWith(".svg")&&!l.dangerouslyAllowSVG&&(f=!0),g&&(z="high");let V=s(h),q=Object.assign(w?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:E,objectPosition:O}:{},N?{}:{color:"transparent"},y),J=A||"empty"===x?null:"blur"===x?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:W,heightInt:T,blurWidth:a,blurHeight:u,blurDataURL:C||"",objectFit:q.objectFit})+'")':'url("'+x+'")',Y=J?{backgroundSize:q.objectFit||"cover",backgroundPosition:q.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:J}:{},H=function(e){let{config:t,src:i,unoptimized:r,width:o,quality:n,sizes:s,loader:l}=e;if(r)return{src:i,srcSet:void 0,sizes:void 0};let{widths:a,kind:u}=function(e,t,i){let{deviceSizes:r,allSizes:o}=e;if(i){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(i);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:o.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:o,kind:"w"}}return"number"!=typeof t?{widths:r,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>o.find(t=>t>=e)||o[o.length-1]))],kind:"x"}}(t,o,s),d=a.length-1;return{sizes:s||"w"!==u?s:"100vw",srcSet:a.map((e,r)=>l({config:t,src:i,quality:n,width:e})+" "+("w"===u?e:r+1)+u).join(", "),src:l({config:t,src:i,quality:n,width:a[d]})}}({config:l,src:d,unoptimized:f,width:W,quality:V,sizes:c,loader:F});return{props:{...M,loading:U?"lazy":p,fetchPriority:z,width:W,height:T,decoding:"async",className:m,style:{...q,...Y},sizes:H.sizes,srcSet:H.srcSet,src:S||H.src},meta:{unoptimized:f,priority:g,placeholder:x,fill:w}}}},9919:function(e,t){"use strict";function i(e){let{widthInt:t,heightInt:i,blurWidth:r,blurHeight:o,blurDataURL:n,objectFit:s}=e,l=r?40*r:t,a=o?40*o:i,u=l&&a?"viewBox='0 0 "+l+" "+a+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===s?"xMidYMid":"cover"===s?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+n+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return i}})},5666:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{default:function(){return a},getImageProps:function(){return l}});let r=i(8754),o=i(7367),n=i(6541),s=r._(i(6663));function l(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/demo/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,i]of Object.entries(t))void 0===i&&delete t[e];return{props:t}}let a=n.Image},6663:function(e,t){"use strict";function i(e){let{config:t,src:i,width:r,quality:o}=e;return t.path+"?url="+encodeURIComponent(i)+"&w="+r+"&q="+(o||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),i.__next_img_default=!0;let r=i},5675:function(e,t,i){e.exports=i(5666)}}]); \ No newline at end of file diff --git a/config/krakend/demo/_next/static/chunks/6103-f75fdab7df28a1cb.js b/config/krakend/demo/_next/static/chunks/6103-f75fdab7df28a1cb.js new file mode 100644 index 0000000..735396b --- /dev/null +++ b/config/krakend/demo/_next/static/chunks/6103-f75fdab7df28a1cb.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6103],{3292:function(e,t,n){var a,i=n(7294);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t(0,a.jsx)("footer",{className:"bg-brand-neutral-900",children:(0,a.jsxs)("div",{className:"container--boxed-xl flex flex-col items-center justify-between w-full",children:[(0,a.jsx)("div",{className:"border-brand-neutral-600 border-t w-full"}),(0,a.jsx)("div",{className:"relative px-0 py-4 lg:pb-10 lg:pt-8 w-full",children:(0,a.jsx)("div",{className:" text-white flex items-center justify-between",children:(0,a.jsxs)("p",{className:"text-brand-neutral-300 text-sm",children:["\xa9 2017 - ",new Date().getFullYear()," KRAKEND S.L."]})})})]})})},8647:function(e,t,n){n.d(t,{Z:function(){return u}});var a,i,r=n(5893),o=n(3292),s=n(7294);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t(0,r.jsx)("header",{className:"bg-brand-neutral-900",children:(0,r.jsx)("div",{className:"container--boxed-xl",children:(0,r.jsx)("div",{className:"relative px-0 py-4 lg:py-6 ",children:(0,r.jsxs)("div",{className:"text-white flex items-center justify-between h-full",children:[(0,r.jsx)("div",{className:"relative z-10",children:(0,r.jsx)(d(),{href:"",children:(0,r.jsx)(l,{})})}),(0,r.jsx)("nav",{className:"flex items-center justify-end",children:(0,r.jsxs)("ul",{className:"flex gap-3 md:gap-6 items-center justify-between",children:[(0,r.jsx)("li",{children:(0,r.jsx)(d(),{href:"https://www.krakend.io/docs/",className:"font-medium text-base hover:underline",target:"_blank",rel:"noopener",children:(0,r.jsxs)("span",{className:"flex items-center gap-1",children:["Docs",(0,r.jsx)(o.Z,{})]})})}),(0,r.jsx)("li",{children:(0,r.jsx)(d(),{href:"https://www.krakend.io",className:"font-medium text-base hover:underline",children:(0,r.jsxs)("span",{className:"flex items-center gap-1",children:["Website",(0,r.jsx)(o.Z,{})]})})})]})})]})})})})},8563:function(e,t,n){n.d(t,{Z:function(){return _}});var a,i=n(5893),r=n(7092),o=n(8647),s=n(5030),c=n(1163),l=n(7294);function p(){return(p=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let[t,n]=e["@comment"].split(":"),a=e.endpoint;return n=n.trim(),t=t.trim(),a.toLowerCase().replace(/ /g,"-").replace(/_/g,"-").replace(/[^a-z0-9/-]/g,"").replace(/(?!^)\//g,"-").replace(/--+/g,"-").replace(/-$/g,"").replace("/","")===f}),x=null==v?void 0:v["@comment"].split(":")[0].trim(),y=null==v?void 0:v["@comment"].split(":")[1].trim();return((0,l.useEffect)(()=>{h().highlightAll()},[]),v)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.Z,{title:"".concat(y," | KrakenD Playground"),description:(null==v?void 0:null===(n=v.extra_config)||void 0===n?void 0:null===(t=n["documentation/openapi"])||void 0===t?void 0:t.summary)||(null==v?void 0:null===(p=v.extra_config)||void 0===p?void 0:null===(a=p["documentation/openapi"])||void 0===a?void 0:a.description)}),(0,i.jsx)(o.Z,{}),(0,i.jsx)("div",{className:"bg-brand-neutral-900 text-white",children:(0,i.jsxs)("div",{className:"container--boxed-xl py-8",children:[(0,i.jsxs)("button",{onClick:()=>_.back(),className:"bg-brand-neutral-600 hover:scale-95 transition-transform rounded-full px-4 py-2 flex items-center justify-center gap-1",children:[(0,i.jsx)(u.Z,{className:"size-5"}),(0,i.jsx)("span",{className:"text-base",children:"Go back"})]}),(0,i.jsxs)("div",{className:"mt-10",children:[(0,i.jsx)("p",{className:"uppercase tracking-wider text-sm text-brand-neutral-300 mb-2",children:x}),(0,i.jsx)("h1",{className:"heading--h2 mb-10",children:y}),(0,i.jsxs)("div",{className:"flex flex-col lg:flex-row gap-12",children:[(0,i.jsxs)("div",{className:"lg:w-1/2 overflow-auto",children:[(0,i.jsx)("p",{className:"font-semibold mb-2",children:"Endpoint Configuration"}),(0,i.jsxs)("pre",{className:"text-sm relative",children:[(0,i.jsx)("button",{className:"absolute right-2 top-3 sm:right-6 sm:top-4 icon ".concat(k?"text-green-500":"text-brand-neutral-200"),onClick:()=>{navigator.clipboard.writeText(JSON.stringify(v,null,2)).then(()=>{b(!0),setTimeout(()=>b(!1),1e3)}).catch(e=>console.error("Failed to copy!",e))},children:(0,i.jsx)(d,{width:20,height:20})}),(0,i.jsx)("code",{className:"language-json",children:JSON.stringify(v,null,2)})]})]}),(0,i.jsx)("div",{className:"lg:w-1/2",children:(0,i.jsx)("div",{className:"prose--mdx",children:m})})]})]})]})}),(0,i.jsx)(r.Z,{})]}):(0,i.jsx)("p",{children:"Use-Case not found"})}n(4277)},5030:function(e,t,n){var a=n(5893),i=n(9008),r=n.n(i),o=n(1163);n(7294);let s={siteTitle:"KrakenD Playground"};t.Z=e=>{let{title:t,description:n}=e;(0,o.useRouter)();let i={title:t||s.siteTitle,description:n};return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(r(),{children:[(0,a.jsx)("title",{children:i.title},"title"),i.description&&(0,a.jsx)("meta",{name:"description",content:i.description})]})})}},1644:function(e,t,n){n.d(t,{a:function(){return a}});function a(e){return{...e}}}}]); \ No newline at end of file diff --git a/config/krakend/demo/_next/static/chunks/9814-ed9b5e85fe153376.js b/config/krakend/demo/_next/static/chunks/9814-ed9b5e85fe153376.js new file mode 100644 index 0000000..889b28f --- /dev/null +++ b/config/krakend/demo/_next/static/chunks/9814-ed9b5e85fe153376.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9814],{6691:function(e,t){"use strict";var n,r,o,u;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION_FAST_REFRESH:function(){return s},ACTION_NAVIGATE:function(){return f},ACTION_PREFETCH:function(){return i},ACTION_REFRESH:function(){return l},ACTION_RESTORE:function(){return a},ACTION_SERVER_ACTION:function(){return d},ACTION_SERVER_PATCH:function(){return c},PrefetchCacheEntryStatus:function(){return r},PrefetchKind:function(){return n},isThenable:function(){return p}});let l="refresh",f="navigate",a="restore",c="server-patch",i="prefetch",s="fast-refresh",d="server-action";function p(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(o=n||(n={})).AUTO="auto",o.FULL="full",o.TEMPORARY="temporary",(u=r||(r={})).fresh="fresh",u.reusable="reusable",u.expired="expired",u.stale="stale",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4318:function(e,t,n){"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(8364),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9577:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return O}});let r=n(8754),o=n(5893),u=r._(n(7294)),l=n(1401),f=n(2045),a=n(7420),c=n(7201),i=n(1443),s=n(9953),d=n(5320),p=n(2905),y=n(4318),b=n(953),h=n(6691),v=new Set;function _(e,t,n,r,o,u){if(u||(0,f.isLocalURL)(t)){if(!r.bypassPrefetchedCheck){let o=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(v.has(o))return;v.add(o)}(async()=>u?e.prefetch(t,o):e.prefetch(t,n,r))().catch(e=>{})}}function C(e){return"string"==typeof e?e:(0,a.formatUrl)(e)}let O=u.default.forwardRef(function(e,t){let n,r;let{href:a,as:v,children:O,prefetch:g=null,passHref:E,replace:j,shallow:P,scroll:T,locale:M,onClick:R,onMouseEnter:m,onTouchStart:A,legacyBehavior:k=!1,...x}=e;n=O,k&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let I=u.default.useContext(s.RouterContext),L=u.default.useContext(d.AppRouterContext),S=null!=I?I:L,N=!I,U=!1!==g,w=null===g?h.PrefetchKind.AUTO:h.PrefetchKind.FULL,{href:K,as:F}=u.default.useMemo(()=>{if(!I){let e=C(a);return{href:e,as:v?C(v):e}}let[e,t]=(0,l.resolveHref)(I,a,!0);return{href:e,as:v?(0,l.resolveHref)(I,v):t||e}},[I,a,v]),H=u.default.useRef(K),D=u.default.useRef(F);k&&(r=u.default.Children.only(n));let V=k?r&&"object"==typeof r&&r.ref:t,[q,z,B]=(0,p.useIntersection)({rootMargin:"200px"}),G=u.default.useCallback(e=>{(D.current!==F||H.current!==K)&&(B(),D.current=F,H.current=K),q(e),V&&("function"==typeof V?V(e):"object"==typeof V&&(V.current=e))},[F,V,K,B,q]);u.default.useEffect(()=>{S&&z&&U&&_(S,K,F,{locale:M},{kind:w},N)},[F,K,z,M,U,null==I?void 0:I.locale,S,N,w]);let Y={ref:G,onClick(e){k||"function"!=typeof R||R(e),k&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),S&&!e.defaultPrevented&&function(e,t,n,r,o,l,a,c,i){let{nodeName:s}=e.currentTarget;if("A"===s.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!i&&!(0,f.isLocalURL)(n)))return;e.preventDefault();let d=()=>{let e=null==a||a;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:l,locale:c,scroll:e}):t[o?"replace":"push"](r||n,{scroll:e})};i?u.default.startTransition(d):d()}(e,S,K,F,j,P,T,M,N)},onMouseEnter(e){k||"function"!=typeof m||m(e),k&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),S&&(U||!N)&&_(S,K,F,{locale:M,priority:!0,bypassPrefetchedCheck:!0},{kind:w},N)},onTouchStart:function(e){k||"function"!=typeof A||A(e),k&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),S&&(U||!N)&&_(S,K,F,{locale:M,priority:!0,bypassPrefetchedCheck:!0},{kind:w},N)}};if((0,c.isAbsoluteUrl)(F))Y.href=F;else if(!k||E||"a"===r.type&&!("href"in r.props)){let e=void 0!==M?M:null==I?void 0:I.locale,t=(null==I?void 0:I.isLocaleDomain)&&(0,y.getDomainLocale)(F,e,null==I?void 0:I.locales,null==I?void 0:I.domainLocales);Y.href=t||(0,b.addBasePath)((0,i.addLocale)(F,e,null==I?void 0:I.defaultLocale))}return k?u.default.cloneElement(r,Y):(0,o.jsx)("a",{...x,...Y,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2905:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return a}});let r=n(7294),o=n(3815),u="function"==typeof IntersectionObserver,l=new Map,f=[];function a(e){let{rootRef:t,rootMargin:n,disabled:a}=e,c=a||!u,[i,s]=(0,r.useState)(!1),d=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{d.current=e},[]);return(0,r.useEffect)(()=>{if(u){if(c||i)return;let e=d.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:o,elements:u}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=f.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=l.get(r)))return t;let o=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:o},f.push(n),l.set(n,t),t}(n);return u.set(e,t),o.observe(e),function(){if(u.delete(e),o.unobserve(e),0===u.size){o.disconnect(),l.delete(r);let e=f.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&f.splice(e,1)}}}(e,e=>e&&s(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!i){let e=(0,o.requestIdleCallback)(()=>s(!0));return()=>(0,o.cancelIdleCallback)(e)}},[c,n,t,i,d.current]),[p,i,(0,r.useCallback)(()=>{s(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9008:function(e,t,n){e.exports=n(7828)},1664:function(e,t,n){e.exports=n(9577)},1163:function(e,t,n){e.exports=n(9090)}}]); \ No newline at end of file diff --git a/config/krakend/demo/_next/static/chunks/framework-0995a3e8436ddc4f.js b/config/krakend/demo/_next/static/chunks/framework-0995a3e8436ddc4f.js new file mode 100644 index 0000000..933e7a7 --- /dev/null +++ b/config/krakend/demo/_next/static/chunks/framework-0995a3e8436ddc4f.js @@ -0,0 +1,33 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9774],{4448:function(e,n,t){/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var r,l,a,u,o,i,s=t(7294),c=t(3840);function f(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t