-
Notifications
You must be signed in to change notification settings - Fork 3
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 deploy it on Vercel #4
Comments
I never tried vercel before. I'll try to make it work and create a new example. |
@nitedani thank you for your reply. What do you use to deploy it? Netlify? |
https://github.com/vikejs/vike-node/tree/main/examples/express-react-vercel
The steps to add vercel support were:
|
@nitedani Thank you so much. I appreciate your quick reply and help. Let me add my user auth logic to the server and see if it works fine with the Vike frontend. |
@nitedani I am trying to pass the user auth info to the PageContext. Here is my code:
But the user info is not yet passed to the PageContext. Any idea how to do this? Here is a code that works but I cannot find a way to deploy it to Vercel:
|
@bitcoinvsalts Have you try this custom-pagecontext ? |
I found the solution to my deployment issue! If I use prerender: true in the vite config file like this, it wont process the destination API correctly while using auth plugins: [ Big thanks to @nitedani for your help. |
I'm glad you managed to achieve what you want. Btw. would your company be up for sponsoring (vikejs/vike#1350)? |
@brillout sorry I don't have a company, I am looking for a job as a Full Stack dev if anyone is looking for one. |
@nitedani any idea on how to deploy express-react example on vercel?
The text was updated successfully, but these errors were encountered: