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

Fail to pass env to Pages Functions #53

Closed
shiyuhang0 opened this issue Jan 11, 2023 · 2 comments
Closed

Fail to pass env to Pages Functions #53

shiyuhang0 opened this issue Jan 11, 2023 · 2 comments

Comments

@shiyuhang0
Copy link

The @cloudflare/next-on-pages CLI transforms the Edge Runtime components of your project into a _worker.js file which is deployed with Pages Functions

When I deploy a Cloudflare page with Prisma data proxy, I set the DATABASE_URL in page settings like this

image

But I find the deployment fails:

image

I think it may be because next-on-pages CLI fails to pass the env from page to Pages Functions. How Can I solve this issue? thanks

@shiyuhang0 shiyuhang0 changed the title How to pass env to Pages Functions Fail to pass env to Pages Functions Jan 11, 2023
@GregBrimble
Copy link
Member

Closed as duplicate of #1

@GregBrimble GregBrimble closed this as not planned Won't fix, can't repro, duplicate, stale Jan 11, 2023
@shiyuhang0
Copy link
Author

shiyuhang0 commented Jan 11, 2023

I look through issue 1 but did't find a good solution. is there a workaround before the feature be merged?

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