···11+// @ts-check
22+import express, { static as serveStatic } from 'express';
33+import { resolve } from 'path';
44+const port = process.env.PORT || 8080;
55+const app = express();
66+77+// serve static assets normally
88+app.use(serveStatic(resolve('./public')));
99+1010+// handle every other route with index.html, which will contain
1111+// a script tag to your application's JavaScript file(s).
1212+app.get('*meow', function (request, response) {
1313+ response.sendFile(resolve('./public/index.html'));
1414+});
1515+1616+app.listen(port);
1717+console.log("server started on port " + port);