core/__snapshots__/TestGenerateBuildPlanForExamples_node-angular_1.snap.json
core/__snapshots__/TestGenerateBuildPlanForExamples_node-angular_1.snap.jsonBrowse 1970 files
1,516 tokens
4,743 bytes
Token encoding: o200k_base
Snapshot 21a254f
← Back to SKILL.md
1{2 "caches": {3 "apt": {4 "directory": "/var/cache/apt",5 "type": "locked"6 },7 "apt-lists": {8 "directory": "/var/lib/apt/lists",9 "type": "locked"10 },11 "node-modules": {12 "directory": "/app/node_modules/.cache",13 "type": "shared"14 },15 "npm-install": {16 "directory": "/root/.npm",17 "type": "shared"18 }19 },20 "deploy": {21 "base": {22 "step": "packages:apt:runtime"23 },24 "inputs": [25 {26 "include": [27 "/railpack/caddy"28 ],29 "step": "packages:caddy"30 },31 {32 "include": [33 "/Caddyfile"34 ],35 "step": "caddy"36 },37 {38 "include": [39 "dist/node-angular/browser"40 ],41 "step": "build"42 }43 ],44 "startCommand": "caddy run --config /Caddyfile --adapter caddyfile 2\u003e\u00261",45 "variables": {46 "CI": "true",47 "NODE_ENV": "production",48 "NPM_CONFIG_FETCH_RETRIES": "5",49 "NPM_CONFIG_FUND": "false",50 "NPM_CONFIG_PRODUCTION": "false",51 "NPM_CONFIG_UPDATE_NOTIFIER": "false",52 "RAILPACK_VERSION": "dev"53 }54 },55 "steps": [56 {57 "assets": {58 "generated-mise-toml": "[generated-mise-toml]"59 },60 "commands": [61 {62 "path": "/mise/shims"63 },64 {65 "customName": "create mise config",66 "name": "generated-mise-toml",67 "path": "/etc/mise/config.toml"68 },69 {70 "cmd": "mise install",71 "customName": "install mise packages: node"72 }73 ],74 "inputs": [75 {76 "image": "ghcr.io/railwayapp/railpack-builder:mise-2026.9.9"77 }78 ],79 "name": "packages:mise",80 "variables": {81 "MISE_CACHE_DIR": "/mise/cache",82 "MISE_CONFIG_DIR": "/mise",83 "MISE_DATA_DIR": "/mise",84 "MISE_INSTALLS_DIR": "/mise/installs",85 "MISE_SHIMS_DIR": "/mise/shims"86 }87 },88 {89 "caches": [90 "npm-install"91 ],92 "commands": [93 {94 "path": "/app/node_modules/.bin"95 },96 {97 "cmd": "mkdir -p /app/node_modules/.cache"98 },99 {100 "dest": "package-lock.json",101 "src": "package-lock.json"102 },103 {104 "dest": "package.json",105 "src": "package.json"106 },107 {108 "cmd": "npm install"109 }110 ],111 "inputs": [112 {113 "step": "packages:mise"114 }115 ],116 "name": "install",117 "variables": {118 "CI": "true",119 "NODE_ENV": "production",120 "NPM_CONFIG_FETCH_RETRIES": "5",121 "NPM_CONFIG_FUND": "false",122 "NPM_CONFIG_PRODUCTION": "false",123 "NPM_CONFIG_UPDATE_NOTIFIER": "false"124 }125 },126 {127 "caches": [128 "node-modules"129 ],130 "commands": [131 {132 "cmd": "npm run build"133 }134 ],135 "inputs": [136 {137 "step": "install"138 },139 {140 "include": [141 "."142 ],143 "local": true144 }145 ],146 "name": "build",147 "secrets": [148 "*"149 ]150 },151 {152 "commands": [153 {154 "cmd": "mise install-into caddy@2.11.4 /railpack/caddy"155 },156 {157 "path": "/railpack/caddy"158 },159 {160 "path": "/railpack/caddy/bin"161 }162 ],163 "inputs": [164 {165 "image": "ghcr.io/railwayapp/railpack-builder:mise-2026.9.9"166 }167 ],168 "name": "packages:caddy",169 "variables": {170 "MISE_PARANOID": "1"171 }172 },173 {174 "assets": {175 "Caddyfile": "# global options\n{\n\tadmin off\n\tpersist_config off\n\tauto_https off\n\n\tlog {\n\t\tformat json\n\t}\n\n\tservers {\n\t\ttrusted_proxies static private_ranges 100.0.0.0/8 # trust railway's proxy\n\t}\n}\n\n# site block, listens on the $PORT environment variable, automatically assigned by railway\n:{$PORT:80} {\n\tlog {\n\t\tformat json\n\t}\n\n\trespond /health 200\n\n\t# Security headers\n\theader {\n\t\t# Prevent some browsers from MIME-sniffing a response away from the declared Content-Type\n\t\tX-Content-Type-Options \"nosniff\"\n\t\t# Remove Server header\n\t\t-Server\n\t}\n\n\t# serve from the 'dist' folder (Vite builds into the 'dist' folder)\n\troot * /app/dist/node-angular/browser\n\n\t# Handle static files\n\tfile_server {\n\t\thide .git\n\t\thide .env*\n\t}\n\n\t# Compression with more formats\n\tencode {\n\t\tgzip\n\t\tzstd\n\t}\n\n\t# match against direct against HTML file matches, folder-level index.html, and optionally fallback to root index.html\n\ttry_files {path} {path}.html {path}/index.html /index.html\n}\n"176 },177 "commands": [178 {179 "name": "Caddyfile",180 "path": "/Caddyfile"181 },182 {183 "cmd": "caddy fmt --overwrite /Caddyfile"184 }185 ],186 "inputs": [187 {188 "step": "packages:caddy"189 }190 ],191 "name": "caddy",192 "secrets": [193 "*"194 ]195 },196 {197 "caches": [198 "apt",199 "apt-lists"200 ],201 "commands": [202 {203 "cmd": "sh -c 'apt-get update \u0026\u0026 apt-get install -y libatomic1'",204 "customName": "install apt packages: libatomic1"205 }206 ],207 "inputs": [208 {209 "image": "ghcr.io/railwayapp/railpack-runtime:mise-2026.9.9"210 }211 ],212 "name": "packages:apt:runtime"213 }214 ]215}