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

Component testing Next apps doesn't serve /public static assets #160

Open
boylec opened this issue Apr 27, 2022 · 1 comment
Open

Component testing Next apps doesn't serve /public static assets #160

boylec opened this issue Apr 27, 2022 · 1 comment

Comments

@boylec
Copy link

boylec commented Apr 27, 2022

Hey there Gleb,

Thanks for all of your work!

Thought maybe you could help: it seems when running cypress open-ct, static files are not served even when setting "fileServerFolder": "public" in cypress.json. (/public being the default static asset path for a Next.JS project)

Does the fileServerFolder configuration not work for the Cypress component test runner?

Thanks!

@gotpop
Copy link

gotpop commented Dec 15, 2022

A workaround that I found is passing unoptimized prop

cypress-io/cypress#18064 (comment)

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