Spaces:
Runtime error
Runtime error
Upload artifacts/api-server/src/app.ts with huggingface_hub
Browse files
artifacts/api-server/src/app.ts
CHANGED
|
@@ -43,9 +43,10 @@ const __dirname = path.dirname(__filename);
|
|
| 43 |
app.use("/api", router);
|
| 44 |
|
| 45 |
// Serve static files from the React app
|
| 46 |
-
const frontendDistPath = path.resolve(__dirname, "../../design-studio/dist");
|
| 47 |
app.use(express.static(frontendDistPath));
|
| 48 |
|
|
|
|
| 49 |
// Handle React routing, return all requests to React app
|
| 50 |
app.get(/.*/, (req, res, next) => {
|
| 51 |
|
|
|
|
| 43 |
app.use("/api", router);
|
| 44 |
|
| 45 |
// Serve static files from the React app
|
| 46 |
+
const frontendDistPath = path.resolve(__dirname, "../../design-studio/dist/public");
|
| 47 |
app.use(express.static(frontendDistPath));
|
| 48 |
|
| 49 |
+
|
| 50 |
// Handle React routing, return all requests to React app
|
| 51 |
app.get(/.*/, (req, res, next) => {
|
| 52 |
|