Added scene tags filter.

This commit is contained in:
2024-01-08 02:21:57 +01:00
parent 5db4f18123
commit 7d5efd12ef
17 changed files with 1136 additions and 136 deletions

View File

@@ -23,9 +23,12 @@ import { renderPage } from 'vike/server'; // eslint-disable-line import/extensio
import { fetchScenesApi } from './scenes.js';
import { fetchActorsApi } from './actors.js';
import initLogger from '../logger.js';
const logger = initLogger();
const isProduction = process.env.NODE_ENV === 'production';
async function startServer() {
export default async function initServer() {
const app = express();
const router = Router();
@@ -106,7 +109,5 @@ async function startServer() {
const port = process.env.PORT || config.web.port || 3000;
app.listen(port);
console.log(`Server running at http://localhost:${port}`);
logger.info(`Server running at http://localhost:${port}`);
}
startServer();