feat: Add Railway deployment configuration

- Add serve as production server for static files
- Add start script for production deployment
- Create railway.toml with deployment settings
- Create .env.example for required environment variables
- Fix index.html to use Vite bundling instead of ESM imports

https://claude.ai/code/session_01DBAyjuKW8Qtzixc64qn9KP
This commit is contained in:
Claude 2026-01-28 18:59:50 +00:00
parent 86bce39a2e
commit 1a758f9f8c
No known key found for this signature in database
5 changed files with 736 additions and 19 deletions

View file

@ -12,21 +12,9 @@
background-color: #f8fafc;
}
</style>
<script type="importmap">
{
"imports": {
"react-dom/": "https://esm.sh/react-dom@^19.2.4/",
"react/": "https://esm.sh/react@^19.2.4/",
"react": "https://esm.sh/react@^19.2.4",
"lucide-react": "https://esm.sh/lucide-react@^0.563.0",
"@google/genai": "https://esm.sh/@google/genai@^1.38.0",
"jspdf": "https://esm.sh/jspdf@2.5.1",
"pdf-lib": "https://esm.sh/pdf-lib@^1.17.1"
}
}
</script>
</head>
</head>
<body>
<div id="root"></div>
<script type="module" src="/index.tsx"></script>
</body>
</html>