core/__snapshots__/TestGenerateBuildPlanForExamples_node-vite-react_1.snap.json
core/__snapshots__/TestGenerateBuildPlanForExamples_node-vite-react_1.snap.jsonBrowse 1970 files
1,539 tokens
4,793 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-lock.json",105 "src": "package-lock.json"106 },107 {108 "dest": "package.json",109 "src": "package.json"110 },111 {112 "cmd": "npm install"113 }114 ],115 "inputs": [116 {117 "step": "packages:mise"118 }119 ],120 "name": "install",121 "variables": {122 "CI": "true",123 "NODE_ENV": "production",124 "NPM_CONFIG_FETCH_RETRIES": "5",125 "NPM_CONFIG_FUND": "false",126 "NPM_CONFIG_PRODUCTION": "false",127 "NPM_CONFIG_UPDATE_NOTIFIER": "false"128 }129 },130 {131 "caches": [132 "node-modules",133 "vite"134 ],135 "commands": [136 {137 "cmd": "npm run build"138 }139 ],140 "inputs": [141 {142 "step": "install"143 },144 {145 "include": [146 "."147 ],148 "local": true149 }150 ],151 "name": "build",152 "secrets": [153 "*"154 ]155 },156 {157 "commands": [158 {159 "cmd": "mise install-into caddy@2.11.4 /railpack/caddy"160 },161 {162 "path": "/railpack/caddy"163 },164 {165 "path": "/railpack/caddy/bin"166 }167 ],168 "inputs": [169 {170 "image": "ghcr.io/railwayapp/railpack-builder:mise-2026.9.9"171 }172 ],173 "name": "packages:caddy",174 "variables": {175 "MISE_PARANOID": "1"176 }177 },178 {179 "assets": {180 "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"181 },182 "commands": [183 {184 "name": "Caddyfile",185 "path": "/Caddyfile"186 },187 {188 "cmd": "caddy fmt --overwrite /Caddyfile"189 }190 ],191 "inputs": [192 {193 "step": "packages:caddy"194 }195 ],196 "name": "caddy",197 "secrets": [198 "*"199 ]200 },201 {202 "caches": [203 "apt",204 "apt-lists"205 ],206 "commands": [207 {208 "cmd": "sh -c 'apt-get update \u0026\u0026 apt-get install -y libatomic1'",209 "customName": "install apt packages: libatomic1"210 }211 ],212 "inputs": [213 {214 "image": "ghcr.io/railwayapp/railpack-runtime:mise-2026.9.9"215 }216 ],217 "name": "packages:apt:runtime"218 }219 ]220}