mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
16 lines
378 B
JavaScript
16 lines
378 B
JavaScript
import express from 'express';
|
|
import { handler as ssrHandler } from './server/entry.mjs';
|
|
|
|
const app = express();
|
|
const base = '/';
|
|
app.use(base, express.static('client/'));
|
|
app.get('/ssr-custom', (_req, res) => {
|
|
res.send('Custom SSR OK (' + Date.now() + ')');
|
|
});
|
|
app.use(ssrHandler);
|
|
|
|
app.use((_req, res) => {
|
|
res.status(500).send('Custom error');
|
|
});
|
|
|
|
app.listen(3000); |