Skip to content
Discussion options

You must be logged in to vote

@RibkiAnas yeah, here is a repo from the creator of hono (https://github.com/yusukebe/hono-and-remix-on-vite).

for my setup I did something very similar but integrated a few middleware (eg. d1 database):

/server/factory.ts:

import { createFactory } from 'hono/factory';
import type { ContextEnv } from 'server';

export const factory = createFactory<ContextEnv>();

/server/index.ts:

import { cors } from 'hono/cors';
import { csrf } from 'hono/csrf';
import { showRoutes } from 'hono/dev';
import { logger } from 'hono/logger';
import { prettyJSON } from 'hono/pretty-json';
import { secureHeaders } from 'hono/secure-headers';
import type { Session, User } from 'lucia';
import { staticAssets } from

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@RibkiAnas
Comment options

@predaytor
Comment options

Answer selected by predaytor
@RibkiAnas
Comment options

@predaytor
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants