core/__snapshots__/TestGenerateBuildPlanForExamples_node-next-spa_1.snap.json
core/__snapshots__/TestGenerateBuildPlanForExamples_node-next-spa_1.snap.jsonBrowse 1970 files
1,557 tokens
4,843 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 "next": {12 "directory": "/app/.next/cache",13 "type": "shared"14 },15 "node-modules": {16 "directory": "/app/node_modules/.cache",17 "type": "shared"18 },19 "npm-install": {20 "directory": "/root/.npm",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 "out"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 "next"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 "variables": {156 "NEXT_TELEMETRY_DISABLED": "1"157 }158 },159 {160 "commands": [161 {162 "cmd": "mise install-into caddy@2.11.4 /railpack/caddy"163 },164 {165 "path": "/railpack/caddy"166 },167 {168 "path": "/railpack/caddy/bin"169 }170 ],171 "inputs": [172 {173 "image": "ghcr.io/railwayapp/railpack-builder:mise-2026.9.9"174 }175 ],176 "name": "packages:caddy",177 "variables": {178 "MISE_PARANOID": "1"179 }180 },181 {182 "assets": {183 "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/out\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"184 },185 "commands": [186 {187 "name": "Caddyfile",188 "path": "/Caddyfile"189 },190 {191 "cmd": "caddy fmt --overwrite /Caddyfile"192 }193 ],194 "inputs": [195 {196 "step": "packages:caddy"197 }198 ],199 "name": "caddy",200 "secrets": [201 "*"202 ]203 },204 {205 "caches": [206 "apt",207 "apt-lists"208 ],209 "commands": [210 {211 "cmd": "sh -c 'apt-get update \u0026\u0026 apt-get install -y libatomic1'",212 "customName": "install apt packages: libatomic1"213 }214 ],215 "inputs": [216 {217 "image": "ghcr.io/railwayapp/railpack-runtime:mise-2026.9.9"218 }219 ],220 "name": "packages:apt:runtime"221 }222 ]223}