Skip to content

How can I added publicRuntimeConfig? #3

@demonguyj

Description

@demonguyj

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. :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions