o134 commited on
Commit
3e7eccc
·
verified ·
1 Parent(s): cc842b1

Upload artifacts/api-server/src/app.ts with huggingface_hub

Browse files
Files changed (1) hide show
  1. artifacts/api-server/src/app.ts +2 -1
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