You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// const remixHandler = is basically the same as the express templateapp.use("/api",isDev ?
((req,res,next)=>devBuild().then(m=>m.entry.module.api(req,res,next)).catch(err=>next(err))) :
productionBuild.entry.module.api??((req,res,next)=>next()));app.all("*",remixHandler);
)
I believe this use-case (augmenting entry.server without changing default export) may be sufficiently reasonable to warrant properly exporting the default entry.server ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Most of my projects have an entry.server.ts to export more things than the default entry, but re-export the default one as-is, for example
(api will then be used by my custom
server.mjs
:)
I believe this use-case (augmenting entry.server without changing default export) may be sufficiently reasonable to warrant properly exporting the default entry.server ?
Beta Was this translation helpful? Give feedback.
All reactions