core icon indicating copy to clipboard operation
core copied to clipboard

Allow NuxtHub to connect to exisiting deployments

Open cybercoder-naj opened this issue 9 months ago • 2 comments

Is your feature request related to a problem? Please describe. I recently learnt about NuxtHub and wanted to use it; but since my project is already deployed on Cloudflare, it rejects the deployment.

Describe the solution you'd like For easy migration of people starting to use NuxtHub, probably allow connecting NuxtHub to existing cloudflare deployments.

Describe alternatives you've considered Delete the project and create a new deployment. But that involves setting up DNS and other configurations.

cybercoder-naj avatar Feb 25 '25 16:02 cybercoder-naj

You should be able to import Cloudflare Projects from the NuxtHub Admin, did you try it>

atinux avatar Feb 26 '25 08:02 atinux

Hi, I see this right now. Thanks! However, i can't select it since @nuxthub/core is not found in the pages project. I'm wondering how this works since I'm pushing static pages to the CDN.

cybercoder-naj avatar Feb 26 '25 11:02 cybercoder-naj

Instead of deploying via nuxi generate, you can deploy using nuxi build after installing the NuxtHub module. https://hub.nuxt.com/docs/getting-started/deploy#self-hosted

Then you can use nitro.prerender to specify all routes, so you still have static pages but the NuxtHub module is running. https://nuxt.com/docs/getting-started/prerendering#selective-pre-rendering

RihanArfan avatar May 26 '25 01:05 RihanArfan