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

How can I added publicRuntimeConfig? #3

Open
demonguyj opened this issue Jul 26, 2022 · 1 comment
Open

How can I added publicRuntimeConfig? #3

demonguyj opened this issue Jul 26, 2022 · 1 comment

Comments

@demonguyj
Copy link

I was set next.config.js

publicRuntimeConfig: {
		staticFolder: ``,
	},

But I try test cypress component, it returned error.

TypeError
The following error originated from your test code, not from Cypress.

> Cannot read properties of undefined (reading 'publicRuntimeConfig')

When Cypress detects uncaught errors originating from your test code it will automatically fail the current test.

Cypress could not associate this error to any specific test.

We dynamically generated a new test to display this failure.

how can I solved this?

Help me plz. :(

@strandseter
Copy link

Did you figure this one out?

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