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

How to link NextJS Project? #174

Open
thachp opened this issue Nov 17, 2023 · 5 comments
Open

How to link NextJS Project? #174

thachp opened this issue Nov 17, 2023 · 5 comments

Comments

@thachp
Copy link

thachp commented Nov 17, 2023

I'm confused. I have a nextjs project generated using @nx/next call example. When i use the nx-firebase, I'm creating another project sample-firebase. How do I link these two projects. Such that when I deploy, i'm deploying example and not the content that is under sample-firebase/public.

This issue is related to #172

@simondotm
Copy link
Owner

I've never used Next.js unfortunately, but it sounds like it would be useful if nx-firebase could work alongside such projects.

Would you be able to give some steps to create a minimum workspace to repro this scenario?

@simondotm
Copy link
Owner

Re-reading your question, you are asking how to deploy your nextjs project?

Assuming it is a project that builds to dist as a web bundle, the steps are documented here.

You basically just need to add an entry to your firebase.json config for the additional website you want to deploy (and create a new named site on the firebase console side)

@thachp
Copy link
Author

thachp commented Dec 24, 2023

Happy holidays! Okay, I will it a try and get back to you.

@Crocsx
Copy link

Crocsx commented Jan 2, 2024

I am also trying to connect things together, having struggled with default config.

for NextJs app there is some setup to do

https://firebase.google.com/docs/hosting/frameworks/nextjs

so enable
firebase experiments:enable webframeworks
then from there need to edit the config (I am still trying to understand what I should add)> I don't think it's connected to this library, but it would be nice to have some setup for nextJs project, or some guide to get started.

@simondotm
Copy link
Owner

If anyone gets this working and would be happy to contribute some user guides for the setup process to this repo, that would be awesome!

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

No branches or pull requests

3 participants