-
Notifications
You must be signed in to change notification settings - Fork 133
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
[🐛 Bug]: Type error: Conversion of type 'ProcessEnv' #562
Comments
@Mecanik Thanks so much for the issue! 😄 I'm fixing this in our Cloudflare docs repo: cloudflare/cloudflare-docs#11971 Please have a look at my PR and let me know if you're happy with the changes 🙂 Besides that I'm closing this issue as I believe this to be a documentation mistake and not an actually issue within the next-on-pages repository, please feel free to reopen it if you disagree |
@dario-piotrowicz Thanks, to be honest this was quite time wasting until I found the actual solution. Luckily I found this: https://socket.dev/npm/package/@cloudflare/next-on-pages-next-dev meanwhile and I figured it out, but the docs confusing users is very bad. You know how it is... "people don't read the docs"; well, now if people read the docs they get confused and nothing works. There is so much more wrong with the docs, for example the fact that if you follow the instructions here: https://developers.cloudflare.com/pages/framework-guides/deploy-a-nextjs-site/#deploy-via-the-create-cloudflare-cli-c3 the project will be built on your side and uploaded as static files - no Edge runtime. However if you connect the project via Github and configure the build normally on the dashboard, the project builds as it should. And so on... |
Also, the comment |
Yes, you're right, sorry about that, I'm sorry about the time wasting, I'll look into improve our docs 😓
Sorry could you clarify what you mean by saying that with C3 the project will be build and |
Just try to follow the documentation and deploy the project from wrangler. In my case, it uploaded as static (no edge functions) + I had to add the The only way I got the project working was to create the project as in the docs ( |
No problem 😄, as I said it's my fault for having that unclear comment there (again thanks for pointing that out!) Do you find this clearer? cloudflare/cloudflare-docs@f0e7a67 |
This is really not right, when you create a next application with
Could you please have another try, document everything you're doing and if you still see the same issues open a new issue in the workers-sdk repository (where the (If you do please tag me there and I'll take it from there 🙂) |
next-on-pages environment related information
No response
Description
As specified here: https://developers.cloudflare.com/pages/framework-guides/deploy-a-nextjs-site/#use-bindings-in-your-nextjs-application
The build fails with:
Reproduction
No response
Pages Deployment Method
Pages CI (GitHub/GitLab integration)
Pages Deployment ID
No response
Additional Information
No response
Would you like to help?
The text was updated successfully, but these errors were encountered: