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

not working on gatsby cloud. #4

Open
kdbkim opened this issue Aug 12, 2021 · 1 comment
Open

not working on gatsby cloud. #4

kdbkim opened this issue Aug 12, 2021 · 1 comment

Comments

@kdbkim
Copy link

kdbkim commented Aug 12, 2021

hi there!
I have a problem with gatsby-plugin-nodejs.
Could you take a look at it?

I wanna use nodejs backend service with gatsby frontend togather on a gatsby cloud.
The nodejs backend service will run the login session and store/access some session information to my own database by the gatsby frontend request.

So for this purpose, when I use "gatsby-plugin-nodejs"(the code was committed, built, and deployed on the gatsby cloud) , I can't access to the node.js backend side.
Could you let me know what's wrong with it?
Is it available in build time only to access to the nodejs backend side? (not available after deploying on gatsby cloud?)

thank you in advance.

@AdamSiekierski
Copy link
Owner

Hey! For this plugin to work, you have to start the Node.js app the regular way. Gatsby Cloud though, is a static hosting, which means you wouldn't be able to start the server for the app to work, and it'll be only available during the build process.

For deploying Node.js apps for free, I would recommend taking a look at Heroku, or some other cloud platforms like DigitalOcean, AWS, GCloud or Azure - they often offer some free tiers that could withstand your load :)

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

2 participants