JS files in public folder evaluated after copy and upload #99
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
Describe the problem:
Files with JS extension in the public folder are evaluated on
yarn deploy
.The folder intended for static files to be uploaded and scripts shouldn't be evaluated.
Link to a minimal reproduction:
https://github.com/traffisco/yarn-bug-test
Added new file test.js with "error" typed in it.
yarn deploy
fails with error:"message": "Uncaught ReferenceError: error is not defined\n at line 22\n"
Files do get copied to
out
folder and uploaded to KV. Instant workaround is to delete the files from the public folder.The text was updated successfully, but these errors were encountered: