core/__snapshots__/TestGenerateBuildPlanForExamples_tanstack-devdeps-spa_1.snap.json
core/__snapshots__/TestGenerateBuildPlanForExamples_tanstack-devdeps-spa_1.snap.jsonBrowse 1970 files
1,517 tokens
4,714 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 "vite": {20 "directory": "/app/node_modules/.vite",21 "type": "shared"22 }23 },24 "deploy": {25 "base": {26 "step": "packages:apt:runtime"27 },28 "inputs": [29 {30 "include": [31 "/railpack/caddy"32 ],33 "step": "packages:caddy"34 },35 {36 "include": [37 "/Caddyfile"38 ],39 "step": "caddy"40 },41 {42 "include": [43 "dist"44 ],45 "step": "build"46 }47 ],48 "startCommand": "caddy run --config /Caddyfile --adapter caddyfile 2\u003e\u00261",49 "variables": {50 "CI": "true",51 "NODE_ENV": "production",52 "NPM_CONFIG_FETCH_RETRIES": "5",53 "NPM_CONFIG_FUND": "false",54 "NPM_CONFIG_PRODUCTION": "false",55 "NPM_CONFIG_UPDATE_NOTIFIER": "false",56 "RAILPACK_VERSION": "dev"57 }58 },59 "steps": [60 {61 "assets": {62 "generated-mise-toml": "[generated-mise-toml]"63 },64 "commands": [65 {66 "path": "/mise/shims"67 },68 {69 "customName": "create mise config",70 "name": "generated-mise-toml",71 "path": "/etc/mise/config.toml"72 },73 {74 "cmd": "mise install",75 "customName": "install mise packages: node"76 }77 ],78 "inputs": [79 {80 "image": "ghcr.io/railwayapp/railpack-builder:mise-2026.9.9"81 }82 ],83 "name": "packages:mise",84 "variables": {85 "MISE_CACHE_DIR": "/mise/cache",86 "MISE_CONFIG_DIR": "/mise",87 "MISE_DATA_DIR": "/mise",88 "MISE_INSTALLS_DIR": "/mise/installs",89 "MISE_SHIMS_DIR": "/mise/shims"90 }91 },92 {93 "caches": [94 "npm-install"95 ],96 "commands": [97 {98 "path": "/app/node_modules/.bin"99 },100 {101 "cmd": "mkdir -p /app/node_modules/.cache"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 "vite"130 ],131 "commands": [132 {133 "cmd": "npm run build"134 }135 ],136 "inputs": [137 {138 "step": "install"139 },140 {141 "include": [142 "."143 ],144 "local": true145 }146 ],147 "name": "build",148 "secrets": [149 "*"150 ]151 },152 {153 "commands": [154 {155 "cmd": "mise install-into caddy@2.11.4 /railpack/caddy"156 },157 {158 "path": "/railpack/caddy"159 },160 {161 "path": "/railpack/caddy/bin"162 }163 ],164 "inputs": [165 {166 "image": "ghcr.io/railwayapp/railpack-builder:mise-2026.9.9"167 }168 ],169 "name": "packages:caddy",170 "variables": {171 "MISE_PARANOID": "1"172 }173 },174 {175 "assets": {176 "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\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"177 },178 "commands": [179 {180 "name": "Caddyfile",181 "path": "/Caddyfile"182 },183 {184 "cmd": "caddy fmt --overwrite /Caddyfile"185 }186 ],187 "inputs": [188 {189 "step": "packages:caddy"190 }191 ],192 "name": "caddy",193 "secrets": [194 "*"195 ]196 },197 {198 "caches": [199 "apt",200 "apt-lists"201 ],202 "commands": [203 {204 "cmd": "sh -c 'apt-get update \u0026\u0026 apt-get install -y libatomic1'",205 "customName": "install apt packages: libatomic1"206 }207 ],208 "inputs": [209 {210 "image": "ghcr.io/railwayapp/railpack-runtime:mise-2026.9.9"211 }212 ],213 "name": "packages:apt:runtime"214 }215 ]216}