14 lines
339 B
TypeScript
14 lines
339 B
TypeScript
import { createRequestHandler } from "@remix-run/express"
|
|
import express from "express"
|
|
|
|
import * as build from "./build/server/index.js"
|
|
|
|
import app from "./api/app"
|
|
|
|
app.use(express.static("build/client"))
|
|
app.all("*", createRequestHandler({ build }))
|
|
|
|
app.listen(3000, () => {
|
|
console.log("App listening on http://localhost:3000")
|
|
})
|