-
Notifications
You must be signed in to change notification settings - Fork 651
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 to Now? #258
Comments
I've the same issue, any one have an idea ? |
@Koli14 @Tristan-Tornatore I got this to work using Now V2 and the headless-starter. I changed wpUrl to my live WP site URL in the frontend/config.js file I copied the DB, the plugins, the theme and the uploads to my live WP site using All-in-One wordpress migration plug in. I did NOT run a yarn build. I made these gist changes I changed my package.json to include In Ziet.co changed the Framework preset to Next.js which comes with build commands, Hope this helps someone as i found Postlights and ziet's documentation a bit lacking... |
Steps I made:
wpUrl
to my live WP site in thefrontend/config.js
filewp-headless
anddb-headless
yarn && yarn build
from thefrontend
directory, and deployed it to Now withnow --prod
frontend-origin.php
in thepostlight-headless-wp
theme in my live WP site to point tohttps://frontend.koli14.now.sh
, where I deployed the frontend.After these steps the front page is working as expected, but if I click on any internal URL, it says:
After refreshing:
Any idea, what did I missed, or how can I debug it?
Thanks!
The text was updated successfully, but these errors were encountered: