Possible to deploy nitro server to Vercel (without Nuxt?) #2075
Unanswered
outofthisworld
asked this question in
Q&A
Replies: 1 comment 7 replies
-
Hi. This should not be the case and might be a bug with vercel's edge. We have nitro test deployments (https://nitro-app.vercel.app/, https://nitro-app-edge.vercel.app/) can you be able to make a reproduction or share your project? |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
I'm currently custom configuring a project that is potentially a little different from the usual as it is using two frameworks (remix.js, nitro server).
The server is packaged in the project as a seperate node_module so the server can be used across projects. Nitro (which is used for Nuxt3, has a preset called
vercel
) which produces a build output suitable for vercel.Within the index route of the nitro server, I have created a request handler using
createRequestHandler
which is exported from "@vercel/remix".This route imports the remix build and does the appropriate transformations of the request to a web request for vercel.
e.g
The problem is that when I deploy, Vercel doesn't seem to be detecting the custom nitro server build and instead detects the remix build and runs that using Vercel. Even if I change the project type to "other" (as nitro is not available as an option) it still detects the project as a Remix project (maybe because of the lack of
nitro.config.js file
in the project root as this is within the server inside node_modules).Any ideas on how I can get this to work?
I was hoping to use nitro to have some of the epic benefits of using Nuxt, but using React as the front-end instead of Vue. The hard part is configuring things right so that Vercel detects the right project type and deploys things correctly
Beta Was this translation helpful? Give feedback.
All reactions