chore: modified server.cjs to server.js

This commit is contained in:
qinluhe 2024-07-04 12:37:42 +08:00
parent 6e4cc3a174
commit a7397b74a0
3 changed files with 4 additions and 3 deletions

View File

@ -86,7 +86,7 @@ const createServer = async (req) => {
let metaData; let metaData;
try { try {
metaData = await fetchMetaData(`${baseUrl}/api/workspace/published/${namespace}/${publishName}`); metaData = await fetchMetaData(`${baseURL}/api/workspace/published/${namespace}/${publishName}`);
} catch (error) { } catch (error) {
logger.error(`Error fetching meta data: ${error}`); logger.error(`Error fetching meta data: ${error}`);
} }

View File

@ -6,7 +6,7 @@
service nginx start service nginx start
# Start the frontend server # Start the frontend server
bun run server.cjs bun run server.js
tail -f /dev/null tail -f /dev/null

View File

@ -47,7 +47,8 @@
"src", "src",
"vite.config.ts", "vite.config.ts",
"cypress.config.ts", "cypress.config.ts",
"cypress" "cypress",
"deploy/server.js"
], ],
"exclude": [ "exclude": [
"node_modules", "node_modules",