makecc 0.2.19 → 0.2.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
Binary file
Binary file
@@ -602,9 +602,12 @@ io.on('connection', (socket) => {
602
602
  // SPA fallback - serve index.html for all non-API routes in production
603
603
  if (isProduction) {
604
604
  const clientDistPath = join(__dirname, '..', 'dist', 'client');
605
- app.get('/{*path}', (req, res) => {
606
- res.sendFile(join(clientDistPath, 'index.html'));
607
- });
605
+ const indexPath = join(clientDistPath, 'index.html');
606
+ if (existsSync(indexPath)) {
607
+ app.get('/{*path}', (req, res) => {
608
+ res.sendFile(indexPath);
609
+ });
610
+ }
608
611
  }
609
612
  const PORT = process.env.PORT || 3001;
610
613
  // 서버 시작 시 프로젝트 초기화
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "makecc",
3
- "version": "0.2.19",
3
+ "version": "0.2.21",
4
4
  "type": "module",
5
5
  "description": "Visual workflow builder for Claude Code agents and skills",
6
6
  "keywords": [
package/server/index.ts CHANGED
@@ -698,9 +698,12 @@ io.on('connection', (socket) => {
698
698
  // SPA fallback - serve index.html for all non-API routes in production
699
699
  if (isProduction) {
700
700
  const clientDistPath = join(__dirname, '..', 'dist', 'client');
701
- app.get('/{*path}', (req, res) => {
702
- res.sendFile(join(clientDistPath, 'index.html'));
703
- });
701
+ const indexPath = join(clientDistPath, 'index.html');
702
+ if (existsSync(indexPath)) {
703
+ app.get('/{*path}', (req, res) => {
704
+ res.sendFile(indexPath);
705
+ });
706
+ }
704
707
  }
705
708
 
706
709
  const PORT = process.env.PORT || 3001;