Prism-Notes migration: copy scaffold, update package metadata, add npm-based deps, switch startup to Bun.serve with custom logs, and ignore env/deps via .gitignore
This commit is contained in:
@@ -127,9 +127,13 @@ app.get('/', async (c) => {
|
||||
});
|
||||
|
||||
const PORT = Number(process.env.PORT || 5500);
|
||||
console.log(`PBandGraph server running at http://localhost:${PORT}`);
|
||||
|
||||
export default {
|
||||
// Start Bun server manually to avoid Bun's auto startup banner
|
||||
const server = Bun.serve({
|
||||
port: PORT,
|
||||
fetch: app.fetch,
|
||||
};
|
||||
});
|
||||
|
||||
// Custom startup notes
|
||||
console.log(`Prism Notes server running at http://localhost:${PORT}`);
|
||||
console.log('Prism Notes API ready (health: /health)');
|
||||
|
||||
Reference in New Issue
Block a user