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
|
package/dist/server/index.js
CHANGED
|
@@ -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
|
-
|
|
606
|
-
|
|
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
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
|
-
|
|
702
|
-
|
|
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;
|