Replies: 2 comments 2 replies
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Newbie here. ` ` followed this Deployment to Northflank https://docs.vendure.io/deployment/deploy-to-northflank payment method issue: { |
Beta Was this translation helpful? Give feedback.
-
I am attempting to get a production deployment running on CloudFlare Pages and I have successfully got a deployment working without error but when I try and hit the URL I get a 404 error.
URLs
https://total-furnishing-care-ecom.pages.dev
https://total-furnishing-care-ecom.pages.dev/admin
My build config is…
Build command: yarn build
Build output directory: /dist
Root directory: /
Build comments on pull requests: Enabled
I had a lot of trouble getting Pages to run the correct version of node, but adding a .node-version file to the root directory with the contents of 16 got me my first successful deployment.
I also added some CloudFlare config to the package.json, but I may have done this wrong; it looks like this…
"cloudflarePages": {
"routes": [
{
"pattern": "/admin/*",
"response": {
"file": "dist/index.html"
}
}
]
}
Beta Was this translation helpful? Give feedback.
All reactions