- a section: 
handle: blog,id: 1- an entry type 
id: 1, with a Categories field- an entry, 
uri: blog/my-foo-entry,id: 2, related toblog/category/foo, published more than a day ago 
 - an entry, 
 
 - an entry type 
 - a category group: 
handle: blog,id: 1- a category: 
uri: blog/category/foo,id: 23 - a category: 
uri: blog/category/bar,id: 24 
 - a category: 
 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | { | |
| "minimum-stability": "dev", | |
| "prefer-stable": true, | |
| "require": { | |
| "craftcms/ckeditor": "^3.14", | |
| "craftcms/cloud": "*", | |
| "craftcms/cms": "^4.16", | |
| "vlucas/phpdotenv": "^5.4.0" | |
| }, | |
| "require-dev": { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | {% if cloud.isCraftCloud() %} | |
| {% do cloud.enableEsi() %} | |
| <esi:include src="{{ src }}" /> | |
| {% else %} | |
| {% include src only %} | |
| {% endif %} | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import { Hono, MiddlewareHandler } from 'hono'; | |
| import { getContext } from "hono/context-storage"; | |
| import esi from "cloudflare-esi"; | |
| import { type CloudflareBindings, type ContextVariables } from "../types"; | |
| import { createMiddleware } from 'hono/factory' | |
| type OriginRequestOptions = { | |
| app: Hono<any, any, any>, | |
| middleware: MiddlewareHandler<any, any, any>[], | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | export default { | |
| async fetch(request): Promise<Response> { | |
| const originRequest = new Request('https://myproxy.com', request); | |
| const originResponse = await fetch(originRequest, { | |
| cf: { | |
| cacheEverything: true, | |
| }, | |
| }); | |
| // cacheTag will be null, even though the response from the origin server sent it | 
<link rel="apple-touch-icon" sizes="180x180" href="{{ cloud.artifactUrl('apple-touch-icon.png') }}">
<div style="background-image: {{ cloud.artifactUrl('images/bottombg.svg') }}; width: 100%; height: 30px; background-size: cover;"> </div>Alternatively, you can use the @artifactBaseUrl alias in a url function:
{{ url('@artifactBaseUrl/images/bottombg.svg') }}
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| namespace modules\testmodule; | |
| use Craft; | |
| use craft\base\Element; | |
| use craft\base\Model; | |
| use craft\elements\Entry; | |
| use craft\events\DefineBehaviorsEvent; | |
| use craft\events\ModelEvent; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| use craft\helpers\App; | |
| return [ | |
| // Global settings | |
| '*' => [ | |
| // If `devMode` is on, use webpack-dev-server to all for HMR (hot module reloading) | |
| 'useDevServer' => false, | |
| // Enforce Absolute URLs on includes | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| use craft\helpers\App; | |
| return [ | |
| 'id' => App::env('CRAFT_APP_ID') ?: 'CraftCMS', | |
| 'components' => [ | |
| 'log' => [ | |
| 'targets' => [ | |
| function() { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | const original = new URL('https://foo.com/boo/bar/baz/boo?qux'); | |
| const kvData = {}; | |
| kvData.redirects = [ | |
| { | |
| // expected result: https://foo.com/boo/baz/boo | |
| from: '^/(foo|boo)/bar/(.*)', | |
| to: '/$1/$2', | |
| status: 301, | |
| pathOnly: true, | 
NewerOlder