Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next.js example #63

Open
brillout opened this issue Apr 14, 2023 · 1 comment
Open

Next.js example #63

brillout opened this issue Apr 14, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@brillout
Copy link
Member

Using Next.js's edge runtime, is it possible to intercept Next.js's requests and serve them with HatTip instead? In that case it may be possible to use Next.js with HatTip.

@QuiiBz Fatih told me you managed to deploy Next.js to Lagon. Did you directly use Next.js's edge runtime or did you intercept requests?

@brillout brillout added the enhancement New feature or request label Apr 14, 2023
@QuiiBz
Copy link
Contributor

QuiiBz commented Apr 14, 2023

I'm using vercel build to get a bundled output of each page/api route, then I manually update the code to match the handler's signature with the one Lagon requires. I can then run this bundle using Lagon's edge runtime.

As you see it currently requires some manual steps, which I'm not sure yet how to automate: lagonapp/lagon#47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants