FetchError: request to http://localhost:3000/User?select=* failed, reason: socket hang up
npm install [email protected] @remix-run/express dotenv
import { createRequestHandler } from "@remix-run/express"; import express from "express"; import https from "https"; import fs from "fs"; import * as build from "./build/server/index.js"; import "dotenv/config"; const key = fs.readFileSync("../../https/privkey.pem"); const cert = fs.readFileSync("../../https/fullchain.pem"); const app = express(); app.use(express.static("./build/client")); app.all("*", createRequestHandler({ build })); const port = process.env.PORT || 4000; https.createServer({ key, cert }, app).listen(port, () => { console.log(`App listening on https://wstd.dev:${port}`); });
// presets: [vercelPreset()],
pnpm build