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
Hello, i am trying to run a basic Astro webpage from elysia
On the Astro documentation, they have examples of how to run an Astro App from a custom expressJS server.
This is the snippet:
importexpressfrom'express';import{handlerasssrHandler}from'./dist/server/entry.mjs';constapp=express();// Change this based on your astro.config.mjs, `base` option.// They should match. The default value is "/".constbase='/';app.use(base,express.static('dist/client/'));app.use(ssrHandler);app.listen(8080);
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
-
Hello, i am trying to run a basic Astro webpage from elysia
On the Astro documentation, they have examples of how to run an Astro App from a custom expressJS server.
This is the snippet:
https://docs.astro.build/en/guides/integrations-guide/node/#middleware
I am fully aware i can use Express on the Bun runtime too, this is the method i am currently using!
I am just curious, How can we replicate this same behavior with ElysiaJS?
Beta Was this translation helpful? Give feedback.
All reactions