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