diff --git a/frontend/appflowy_web_app/deploy/server.cjs b/frontend/appflowy_web_app/deploy/server.js similarity index 98% rename from frontend/appflowy_web_app/deploy/server.cjs rename to frontend/appflowy_web_app/deploy/server.js index a8bc3e6da7..f24bf55d43 100644 --- a/frontend/appflowy_web_app/deploy/server.cjs +++ b/frontend/appflowy_web_app/deploy/server.js @@ -86,7 +86,7 @@ const createServer = async (req) => { let metaData; try { - metaData = await fetchMetaData(`${baseUrl}/api/workspace/published/${namespace}/${publishName}`); + metaData = await fetchMetaData(`${baseURL}/api/workspace/published/${namespace}/${publishName}`); } catch (error) { logger.error(`Error fetching meta data: ${error}`); } diff --git a/frontend/appflowy_web_app/deploy/start.sh b/frontend/appflowy_web_app/deploy/start.sh index 7fb7709ba8..368a2fd7f0 100644 --- a/frontend/appflowy_web_app/deploy/start.sh +++ b/frontend/appflowy_web_app/deploy/start.sh @@ -6,7 +6,7 @@ service nginx start # Start the frontend server -bun run server.cjs +bun run server.js tail -f /dev/null diff --git a/frontend/appflowy_web_app/tsconfig.json b/frontend/appflowy_web_app/tsconfig.json index 875f06f3e5..a67112a115 100644 --- a/frontend/appflowy_web_app/tsconfig.json +++ b/frontend/appflowy_web_app/tsconfig.json @@ -47,7 +47,8 @@ "src", "vite.config.ts", "cypress.config.ts", - "cypress" + "cypress", + "deploy/server.js" ], "exclude": [ "node_modules",