fix: build

This commit is contained in:
David Nguyen
2025-02-08 20:35:20 +11:00
parent 4aec21a37f
commit 82b5795636
34 changed files with 1175 additions and 147 deletions

24
apps/remix/server/main.js Normal file
View File

@ -0,0 +1,24 @@
/**
* This is the main entry point for the server which will launch the RR7 application
* and spin up auth, api, etc.
*
* Note:
* This file will be copied to the build folder during build time.
* Running this file will not work without a build.
*/
import { serve } from '@hono/node-server';
import { serveStatic } from '@hono/node-server/serve-static';
import handle from 'hono-react-router-adapter/node';
import server from './hono/server/router.js';
import * as build from './index.js';
server.use(
serveStatic({
root: 'build/client',
}),
);
const handler = handle(build, server);
serve({ fetch: handler.fetch, port: 3000 });